Increase inmem SMGR size for walredo process to 100 pagees

This commit is contained in:
Konstantin Knizhnik
2025-02-22 16:00:55 +02:00
parent b1d8771d5f
commit 212d27f24e

View File

@@ -32,8 +32,8 @@
#include "inmem_smgr.h"
/* Size of the in-memory smgr */
#define MAX_PAGES 64
/* Size of the in-memory smgr: XLR_MAX_BLOCK_ID is 32, but we can update up to 3 forks for each block */
#define MAX_PAGES 100
/* If more than WARN_PAGES are used, print a warning in the log */
#define WARN_PAGES 32
@@ -292,7 +292,7 @@ inmem_write(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum,
blocknum,
used_pages);
if (used_pages == MAX_PAGES)
elog(ERROR, "Inmem storage overflow");
ereport(ERROR, (errmsg("Inmem storage overflow"), errbacktrace()));
pg = used_pages;
used_pages++;