Content-Length: 259368 | pFad | http://github.com/postgrespro/postgres/commit/ec3d976bce7e322c29f1007d19b63b7a3a1a6ee4

EC Fix the same-rel optimization when creating WAL records. · postgrespro/postgres@ec3d976 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/ec3d976bce7e322c29f1007d19b63b7a3a1a6ee4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy