/* ** The GiST Consistent method for segments ** Should return false if for all data items x below entry, ** the predicate x op query == FALSE, where op is the oper ** corresponding to strategy in the pg_amop table. */ bool gseg_consistent(GISTENTRY *entry, SEG * query, StrategyNumber strategy) { /* * if entry is not leaf, use gseg_internal_consistent, else use * gseg_leaf_consistent */ if (GIST_LEAF(entry)) return (gseg_leaf_consistent((SEG *) DatumGetPointer(entry->key), query, strategy)); else return (gseg_internal_consistent((SEG *) DatumGetPointer(entry->key), query, strategy)); }
/* ** The GiST Consistent method for segments ** Should return false if for all data items x below entry, ** the predicate x op query == FALSE, where op is the oper ** corresponding to strategy in the pg_amop table. */ bool gseg_consistent(GISTENTRY *entry, SEG *query, StrategyNumber strategy, Oid subtype, bool *recheck) { /* All cases served by this function are exact */ *recheck = false; /* * if entry is not leaf, use gseg_internal_consistent, else use * gseg_leaf_consistent */ if (GIST_LEAF(entry)) return (gseg_leaf_consistent((SEG *) DatumGetPointer(entry->key), query, strategy)); else return (gseg_internal_consistent((SEG *) DatumGetPointer(entry->key), query, strategy)); }