pgsql: Fix wal_writer_flush_after initializer value.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix wal_writer_flush_after initializer value.
Date: 2023-05-14 23:22:20
Message-ID: E1pyL2i-002B3F-6k@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix wal_writer_flush_after initializer value.

Commit a73952b7956 (new in 16) required default values in guc_table.c
and C variable initializers to match. This one only matched when
XLOG_BLCKSZ == 8kB. Fix by using the same expression in both places
with a new DEFAULT_XXX macro, as done for other GUCs.

Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/CA+hUKGLNmLV=VrT==5MqnbARgx2ifRSFtdd8ofdfrdSLL3yv5A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/63932a6d38e5dfa6df2a51a04b7314ec1e4d3de7

Modified Files
--------------
src/backend/postmaster/walwriter.c | 2 +-
src/backend/utils/misc/guc_tables.c | 2 +-
src/include/postmaster/walwriter.h | 2 ++
3 files changed, 4 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-05-15 04:28:31 pgsql: Fix whitespace inconsistencies
Previous Message Nathan Bossart 2023-05-12 21:19:07 pgsql: Improve error message for pg_create_subscription.