1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-26 12:21:12 +03:00

Fix wal_writer_flush_after initializer value.

Commit a73952b795 (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@anarazel.de>
Discussion: https://postgr.es/m/CA+hUKGLNmLV=VrT==5MqnbARgx2ifRSFtdd8ofdfrdSLL3yv5A@mail.gmail.com
This commit is contained in:
Thomas Munro
2023-05-15 10:45:19 +12:00
parent 319bae9a8d
commit 63932a6d38
3 changed files with 4 additions and 2 deletions

View File

@ -2780,7 +2780,7 @@ struct config_int ConfigureNamesInt[] =
GUC_UNIT_XBLOCKS
},
&WalWriterFlushAfter,
(1024 * 1024) / XLOG_BLCKSZ, 0, INT_MAX,
DEFAULT_WAL_WRITER_FLUSH_AFTER, 0, INT_MAX,
NULL, NULL, NULL
},