Skip to content

Commit ec3d976

Browse files
committed
Fix the same-rel optimization when creating WAL records.
prev_regbuf was never set, and therefore the same-rel flag was never set on WAL records. Report and fix by Zhanq Zq
1 parent 3c000fd commit ec3d976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/transam/xloginsert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,10 +667,10 @@ XLogRecordAssemble(RmgrId rmid, uint8 info,
667667
{
668668
samerel = true;
669669
bkpb.fork_flags |= BKPBLOCK_SAME_REL;
670-
prev_regbuf = regbuf;
671670
}
672671
else
673672
samerel = false;
673+
prev_regbuf = regbuf;
674674

675675
/* Ok, copy the header to the scratch buffer */
676676
memcpy(scratch, &bkpb, SizeOfXLogRecordBlockHeader);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy