Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4669cac

Browse files
committed
Rework HeapTupleHeader macros to reuse itemptr.h
The original definitions pointlessly disregarded existing ItemPointermacros that do the same thing.Reported-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/20210222201557.GA32655@alvherre.pgsql
1 parenta24ae3d commit4669cac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/include/access/htup_details.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,11 +443,10 @@ do { \
443443
)
444444

445445
#defineHeapTupleHeaderIndicatesMovedPartitions(tup) \
446-
(ItemPointerGetOffsetNumber(&(tup)->t_ctid) == MovedPartitionsOffsetNumber && \
447-
ItemPointerGetBlockNumberNoCheck(&(tup)->t_ctid) == MovedPartitionsBlockNumber)
446+
ItemPointerIndicatesMovedPartitions(&(tup)->t_ctid)
448447

449448
#defineHeapTupleHeaderSetMovedPartitions(tup) \
450-
ItemPointerSet(&(tup)->t_ctid, MovedPartitionsBlockNumber, MovedPartitionsOffsetNumber)
449+
ItemPointerSetMovedPartitions(&(tup)->t_ctid)
451450

452451
#defineHeapTupleHeaderGetDatumLength(tup) \
453452
VARSIZE(tup)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp