1084 GISTENTRY *entry = (GISTENTRY *)PG_GETARG_POINTER(0);
1085 StrategyNumber strategy = (StrategyNumber)PG_GETARG_UINT16(2);
1087 char gidxmem[GIDX_MAX_SIZE];
1088 GIDX *query_gbox_index = (GIDX *)gidxmem;
1092 bool *recheck = (
bool *)PG_GETARG_POINTER(4);
1099 POSTGIS_DEBUG(4,
"[GIST] 'consistent' function called");
1102 if (!DatumGetPointer(PG_GETARG_DATUM(1)))
1104 POSTGIS_DEBUG(4,
"[GIST] null query pointer (!?!), returning false");
1105 PG_RETURN_BOOL(
false);
1109 if (!DatumGetPointer(entry->key))
1111 POSTGIS_DEBUG(4,
"[GIST] null index entry, returning false");
1112 PG_RETURN_BOOL(
false);
1116 if (gserialized_datum_get_gidx_p(PG_GETARG_DATUM(1), query_gbox_index) ==
LW_FAILURE)
1118 POSTGIS_DEBUG(4,
"[GIST] null query_gbox_index!");
1119 PG_RETURN_BOOL(
false);
1123 if (GIST_LEAF(entry))
1131 (GIDX *)DatumGetPointer(entry->key), query_gbox_index, strategy);
1134 PG_RETURN_BOOL(result);
static bool gserialized_gist_consistent_internal(GIDX *key, GIDX *query, StrategyNumber strategy)
static bool gserialized_gist_consistent_leaf(GIDX *key, GIDX *query, StrategyNumber strategy)