]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Pass ItemPointer not HeapTuple to IndexBuildCallback.
authorAndres Freund <andres@anarazel.de>
Fri, 8 Nov 2019 08:44:52 +0000 (00:44 -0800)
committerAndres Freund <andres@anarazel.de>
Fri, 8 Nov 2019 19:49:29 +0000 (11:49 -0800)
commitaae50236e4ce95c05a3962be0814c74c5a22206d
treeab040612da65567def53a6ee17db9b0b54f3037d
parent71a8a4f6e36547bb060dbcc961ea9b57420f7190
Pass ItemPointer not HeapTuple to IndexBuildCallback.

Not all AMs use HeapTuples internally, making it inconvenient to pass
a HeapTuple. As the index callbacks really only need the TID, not the
full tuple, modify callback to only take ItemPointer.

Author: Ashwin Agrawal
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/CALfoeis6=8ehuR=VNtHvj3z16cYfCwPdTcpaxU+sfSUJ5QgR3g@mail.gmail.com
contrib/amcheck/verify_nbtree.c
contrib/bloom/blinsert.c
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/include/access/tableam.h