1131 GISTENTRY *entry = (GISTENTRY*) PG_GETARG_POINTER(0);
1132 StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
1134 BOX2DF query_gbox_index;
1138 bool *recheck = (
bool *) PG_GETARG_POINTER(4);
1145 POSTGIS_DEBUG(4,
"[GIST] 'consistent' function called");
1148 if ( DatumGetPointer(PG_GETARG_DATUM(1)) == NULL )
1150 POSTGIS_DEBUG(4,
"[GIST] null query pointer (!?!), returning false");
1151 PG_RETURN_BOOL(
FALSE);
1155 if ( DatumGetPointer(entry->key) == NULL )
1157 POSTGIS_DEBUG(4,
"[GIST] null index entry, returning false");
1158 PG_RETURN_BOOL(
FALSE);
1164 POSTGIS_DEBUG(4,
"[GIST] null query_gbox_index!");
1165 PG_RETURN_BOOL(
FALSE);
1169 if (GIST_LEAF(entry))
1172 (BOX2DF*)DatumGetPointer(entry->key),
1173 &query_gbox_index, strategy);
1178 (BOX2DF*)DatumGetPointer(entry->key),
1179 &query_gbox_index, strategy);
1182 PG_RETURN_BOOL(result);
static bool gserialized_gist_consistent_leaf_2d(BOX2DF *key, BOX2DF *query, StrategyNumber strategy)
int gserialized_datum_get_box2df_p(Datum gsdatum, BOX2DF *box2df)
Peak into a GSERIALIZED datum to find the bounding box.
static bool gserialized_gist_consistent_internal_2d(BOX2DF *key, BOX2DF *query, StrategyNumber strategy)