From dcf89093826cc14dbd611471be6dd48ac0d186b3 Mon Sep 17 00:00:00 2001 From: chenzhikai <895543892@qq.com> Date: Fri, 1 Dec 2023 16:06:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4dorado=E5=8F=8C=E9=9B=86?= =?UTF-8?q?=E7=BE=A4=E9=BB=98=E8=AE=A4wal=20buffer=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/initdb/initdb.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/initdb/initdb.cpp b/src/bin/initdb/initdb.cpp index b1b11f6a5..825ce896b 100644 --- a/src/bin/initdb/initdb.cpp +++ b/src/bin/initdb/initdb.cpp @@ -1604,6 +1604,10 @@ static void setup_config(void) nRet = strcpy_s(repltok, sizeof(repltok), "ss_enable_dorado = on"); securec_check_c(nRet, "\0", "\0"); conflines = replace_token(conflines, "#ss_enable_dorado = off", repltok); + + nRet = strcpy_s(repltok, sizeof(repltok), "wal_buffers = 1GB"); + securec_check_c(nRet, "\0", "\0"); + conflines = replace_token(conflines, "#wal_buffers = 16MB", repltok); } nRet = sprintf_s(path, sizeof(path), "%s/postgresql.conf", pg_data);