diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2023-08-28 15:15:20 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2023-08-28 15:17:04 +0200 |
commit | 36e4419d1f1ef06bba58a28a870aaaa8de73bb46 (patch) | |
tree | 9884e1cad81ae0aab5e7aba9f6d9bf676b8a7a3f /src/include/utils/guc_hooks.h | |
parent | bb9002257b2211c213ad5989446d83a61c6446d3 (diff) | |
download | postgresql-36e4419d1f1ef06bba58a28a870aaaa8de73bb46.tar.gz postgresql-36e4419d1f1ef06bba58a28a870aaaa8de73bb46.zip |
Make error messages about WAL segment size more consistent
Make the primary messages more compact and make the detail messages
uniform. In initdb.c and pg_resetwal.c, use the newish
option_parse_int() to simplify some of the option parsing. For the
backend GUC wal_segment_size, add a GUC check hook to do the
verification instead of coding it in bootstrap.c. This might be
overkill, but that way the check is in the right place and it becomes
more self-documenting.
In passing, make pg_controldata use the logging API for warning
messages.
Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Discussion: https://www.postgresql.org/message-id/flat/9939aa8a-d7be-da2c-7715-0a0b5535a1f7@eisentraut.org
Diffstat (limited to 'src/include/utils/guc_hooks.h')
-rw-r--r-- | src/include/utils/guc_hooks.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/guc_hooks.h b/src/include/utils/guc_hooks.h index 952293a1c30..f04b99e3b95 100644 --- a/src/include/utils/guc_hooks.h +++ b/src/include/utils/guc_hooks.h @@ -158,6 +158,7 @@ extern bool check_wal_buffers(int *newval, void **extra, GucSource source); extern bool check_wal_consistency_checking(char **newval, void **extra, GucSource source); extern void assign_wal_consistency_checking(const char *newval, void *extra); +extern bool check_wal_segment_size(int *newval, void **extra, GucSource source); extern void assign_xlog_sync_method(int new_sync_method, void *extra); #endif /* GUC_HOOKS_H */ |