mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
tableam: Support for an index build's initial table scan(s).
To support building indexes over tables of different AMs, the scans to do so need to be routed through the table AM. While moving a fair amount of code, nearly all the changes are just moving code to below a callback. Currently the range based interface wouldn't make much sense for non block based table AMs. But that seems aceptable for now. Author: Andres Freund Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
This commit is contained in:
@@ -238,7 +238,7 @@ ambuild (Relation heapRelation,
|
||||
but is empty. It must be filled in with whatever fixed data the
|
||||
access method requires, plus entries for all tuples already existing
|
||||
in the table. Ordinarily the <function>ambuild</function> function will call
|
||||
<function>IndexBuildHeapScan()</function> to scan the table for existing tuples
|
||||
<function>table_index_build_scan()</function> to scan the table for existing tuples
|
||||
and compute the keys that need to be inserted into the index.
|
||||
The function must return a palloc'd struct containing statistics about
|
||||
the new index.
|
||||
|
Reference in New Issue
Block a user