mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
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
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user