mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Create core infrastructure for KNNGIST.
This is a heavily revised version of builtin_knngist_core-0.9. The ordering operators are no longer mixed in with actual quals, which would have confused not only humans but significant parts of the planner. Instead, ordering operators are carried separately throughout planning and execution. Since the API for ambeginscan and amrescan functions had to be changed anyway, this commit takes the opportunity to rationalize that a bit. RelationGetIndexScan no longer forces a premature index_rescan call; instead, callers of index_beginscan must call index_rescan too. Aside from making the AM-side initialization logic a bit less peculiar, this has the advantage that we do not make a useless extra am_rescan call when there are runtime key values. AMs formerly could not assume that the key values passed to amrescan were actually valid; now they can. Teodor Sigaev and Tom Lane
This commit is contained in:
@@ -32,7 +32,8 @@ extern PGDLLIMPORT get_attavgwidth_hook_type get_attavgwidth_hook;
|
||||
|
||||
extern bool op_in_opfamily(Oid opno, Oid opfamily);
|
||||
extern int get_op_opfamily_strategy(Oid opno, Oid opfamily);
|
||||
extern void get_op_opfamily_properties(Oid opno, Oid opfamily,
|
||||
extern Oid get_op_opfamily_sortfamily(Oid opno, Oid opfamily);
|
||||
extern void get_op_opfamily_properties(Oid opno, Oid opfamily, bool ordering_op,
|
||||
int *strategy,
|
||||
Oid *lefttype,
|
||||
Oid *righttype);
|
||||
|
Reference in New Issue
Block a user