1195 GISTENTRY *entry = (GISTENTRY*) PG_GETARG_POINTER(0);
1196 StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
1198 BOX2DF query_gbox_index;
1202 bool *recheck = (
bool *) PG_GETARG_POINTER(4);
1209 POSTGIS_DEBUG(4,
"[GIST] 'consistent' function called");
1212 if ( DatumGetPointer(PG_GETARG_DATUM(1)) == NULL )
1214 POSTGIS_DEBUG(4,
"[GIST] null query pointer (!?!), returning false");
1215 PG_RETURN_BOOL(
false);
1219 if ( DatumGetPointer(entry->key) == NULL )
1221 POSTGIS_DEBUG(4,
"[GIST] null index entry, returning false");
1222 PG_RETURN_BOOL(
false);
1228 POSTGIS_DEBUG(4,
"[GIST] null query_gbox_index!");
1229 PG_RETURN_BOOL(
false);
1233 if (GIST_LEAF(entry))
1236 (BOX2DF*)DatumGetPointer(entry->key),
1237 &query_gbox_index, strategy);
1242 (BOX2DF*)DatumGetPointer(entry->key),
1243 &query_gbox_index, strategy);
1246 PG_RETURN_BOOL(result);
static bool gserialized_gist_consistent_internal_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_leaf_2d(BOX2DF *key, BOX2DF *query, StrategyNumber strategy)