Fix wal_writer_flush_after initializer value.
Thomas Munro <tmunro@postgresql.org>
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@anarazel.de> Discussion: https://postgr.es/m/CA+hUKGLNmLV=VrT==5MqnbARgx2ifRSFtdd8ofdfrdSLL3yv5A@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/walwriter.c | modified | +1 −1 |
| src/backend/utils/misc/guc_tables.c | modified | +1 −1 |
| src/include/postmaster/walwriter.h | modified | +2 −0 |
Discussion
- check_GUC_init(wal_writer_flush_after) fails with non-default block size 4 messages · 2023-04-08 → 2023-05-14