Skip to content

Commit 3eb4821

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 65db396 + 371d91b commit 3eb4821

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/backend/storage/buffer/bufmgr.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -4695,9 +4695,13 @@ RelationCopyStorageUsingBuffer(RelFileLocator srclocator,
46954695
memcpy(dstPage, srcPage, BLCKSZ);
46964696
MarkBufferDirty(dstBuf);
46974697

4698-
/* WAL-log the copied page. */
4698+
/*
4699+
* WAL-log the copied page.
4700+
* Note that we don't know about the type of data contained in the
4701+
* page, so we can't report that the buffer is a standard page.
4702+
*/
46994703
if (use_wal)
4700-
log_newpage_buffer(dstBuf, true);
4704+
log_newpage_buffer(dstBuf, false);
47014705

47024706
END_CRIT_SECTION();
47034707

0 commit comments

Comments
 (0)