Skip to content

Commit e3b5a3f

Browse files
author
Commitfest Bot
committed
[CF 4986] v1 - WAL_LOG CREATE DATABASE strategy broken for non-standard page layouts
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/4986 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/CAEze2WgNjODiAiTU18E06_BrRK0nqwJ1kdS_bN61c2_DpFDSnQ@mail.gmail.com Author(s): Matthias van de Meent
2 parents 317c117 + ced36fc commit e3b5a3f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/backend/storage/buffer/bufmgr.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5204,9 +5204,13 @@ RelationCopyStorageUsingBuffer(RelFileLocator srclocator,
52045204
memcpy(dstPage, srcPage, BLCKSZ);
52055205
MarkBufferDirty(dstBuf);
52065206

5207-
/* WAL-log the copied page. */
5207+
/*
5208+
* WAL-log the copied page.
5209+
* Note that we don't know about the type of data contained in the
5210+
* page, so we can't report that the buffer is a standard page.
5211+
*/
52085212
if (use_wal)
5209-
log_newpage_buffer(dstBuf, true);
5213+
log_newpage_buffer(dstBuf, false);
52105214

52115215
END_CRIT_SECTION();
52125216

0 commit comments

Comments
 (0)