]> granicus.if.org Git - postgresql/commit
tableam: Support for an index build's initial table scan(s).
authorAndres Freund <andres@anarazel.de>
Thu, 28 Mar 2019 02:59:06 +0000 (19:59 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 28 Mar 2019 02:59:06 +0000 (19:59 -0700)
commit2a96909a4a8c38705163b83a81b228d5aec197f9
tree566d1b8848467ad68ca336a602ac5ab49a476d69
parent12bb35fc9b000d462b9bd6b8856e1884ef1bb3d7
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
14 files changed:
contrib/amcheck/verify_nbtree.c
contrib/bloom/blinsert.c
doc/src/sgml/indexam.sgml
src/backend/access/brin/brin.c
src/backend/access/gin/gininsert.c
src/backend/access/gist/gistbuild.c
src/backend/access/hash/hash.c
src/backend/access/heap/heapam_handler.c
src/backend/access/nbtree/nbtsort.c
src/backend/access/spgist/spginsert.c
src/backend/catalog/index.c
src/include/access/tableam.h
src/include/catalog/index.h
src/tools/pgindent/typedefs.list