From 95f27be3e88047c81479e494ecb014027617f8f5 Mon Sep 17 00:00:00 2001 From: glyn Date: Tue, 4 Oct 2016 16:25:47 +0100 Subject: [PATCH] Use actual page size and pages per segment to produce wal size --- pg_upgrade_conf.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_upgrade_conf.pl b/pg_upgrade_conf.pl index 68e8774..e16e5dd 100755 --- a/pg_upgrade_conf.pl +++ b/pg_upgrade_conf.pl @@ -39,7 +39,7 @@ my %g_gucs; my %g_gucs_src; my $g_page_size = 8192; my $g_wal_segment_size = 2048; -my $g_wal_segment = sizePretty(8192*2048); +my $g_wal_segment = sizePretty($g_page_size*$g_wal_segment_size); # Settings that map onto obsolete settings # -- 2.39.5