mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
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
This commit is contained in:
parent
a24ae3d7b9
commit
4669cacbd4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user