diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-02-22 17:21:22 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-03-25 15:47:48 -0300 |
commit | 4669cacbd4b4b1baa1b7f2ea53d461433a1b6276 (patch) | |
tree | d336058cfc2555789d8ab2eb70322f220721f483 /src | |
parent | a24ae3d7b9efb3b113c0d53030aa99de0d41b40a (diff) | |
download | postgresql-4669cacbd4b4b1baa1b7f2ea53d461433a1b6276.tar.gz postgresql-4669cacbd4b4b1baa1b7f2ea53d461433a1b6276.zip |
Rework HeapTupleHeader macros to reuse itemptr.h
The original definitions pointlessly disregarded existing ItemPointer
macros that do the same thing.
Reported-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/20210222201557.GA32655@alvherre.pgsql
Diffstat (limited to 'src')
-rw-r--r-- | src/include/access/htup_details.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/access/htup_details.h b/src/include/access/htup_details.h index 9a4f43c1ff1..960772f76b9 100644 --- a/src/include/access/htup_details.h +++ b/src/include/access/htup_details.h @@ -443,11 +443,10 @@ do { \ ) #define HeapTupleHeaderIndicatesMovedPartitions(tup) \ - (ItemPointerGetOffsetNumber(&(tup)->t_ctid) == MovedPartitionsOffsetNumber && \ - ItemPointerGetBlockNumberNoCheck(&(tup)->t_ctid) == MovedPartitionsBlockNumber) + ItemPointerIndicatesMovedPartitions(&(tup)->t_ctid) #define HeapTupleHeaderSetMovedPartitions(tup) \ - ItemPointerSet(&(tup)->t_ctid, MovedPartitionsBlockNumber, MovedPartitionsOffsetNumber) + ItemPointerSetMovedPartitions(&(tup)->t_ctid) #define HeapTupleHeaderGetDatumLength(tup) \ VARSIZE(tup) |