mirror of
https://github.com/postgres/postgres.git
synced 2025-08-24 09:27:52 +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:
@@ -22,7 +22,7 @@
|
||||
/*
|
||||
* Maximum number of arguments to a function.
|
||||
*
|
||||
* The minimum value is 8 (index cost estimation uses 8-argument functions).
|
||||
* The minimum value is 9 (index cost estimation uses 9-argument functions).
|
||||
* The maximum possible value is around 600 (limited by index tuple size in
|
||||
* pg_proc's index; BLCKSZ larger than 8K would allow more). Values larger
|
||||
* than needed will waste memory and processing time, but do not directly
|
||||
|
Reference in New Issue
Block a user