993 GISTENTRY *entry = (GISTENTRY*) PG_GETARG_POINTER(0);
994 StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
996 BOX2DF query_gbox_index;
1000 bool *recheck = (
bool *) PG_GETARG_POINTER(4);
1007 POSTGIS_DEBUG(4,
"[GIST] 'consistent' function called");
1010 if ( DatumGetPointer(PG_GETARG_DATUM(1)) == NULL )
1012 POSTGIS_DEBUG(4,
"[GIST] null query pointer (!?!), returning false");
1013 PG_RETURN_BOOL(
false);
1017 if ( DatumGetPointer(entry->key) == NULL )
1019 POSTGIS_DEBUG(4,
"[GIST] null index entry, returning false");
1020 PG_RETURN_BOOL(
false);
1026 POSTGIS_DEBUG(4,
"[GIST] null query_gbox_index!");
1027 PG_RETURN_BOOL(
false);
1031 if (GIST_LEAF(entry))
1034 (BOX2DF*)DatumGetPointer(entry->key),
1035 &query_gbox_index, strategy);
1040 (BOX2DF*)DatumGetPointer(entry->key),
1041 &query_gbox_index, strategy);
1044 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)