diff options
author | Andres Freund <andres@anarazel.de> | 2019-11-08 00:44:52 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2019-11-08 11:49:29 -0800 |
commit | aae50236e4ce95c05a3962be0814c74c5a22206d (patch) | |
tree | ab040612da65567def53a6ee17db9b0b54f3037d /src/include | |
parent | 71a8a4f6e36547bb060dbcc961ea9b57420f7190 (diff) | |
download | postgresql-aae50236e4ce95c05a3962be0814c74c5a22206d.tar.gz postgresql-aae50236e4ce95c05a3962be0814c74c5a22206d.zip |
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
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/access/tableam.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h index 7f81703b783..64022917e21 100644 --- a/src/include/access/tableam.h +++ b/src/include/access/tableam.h @@ -141,7 +141,7 @@ typedef struct TM_FailureData /* Typedef for callback function for table_index_build_scan */ typedef void (*IndexBuildCallback) (Relation index, - HeapTuple htup, + ItemPointer tid, Datum *values, bool *isnull, bool tupleIsAlive, |