From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Make error messages about WAL segment size more consistent |
Date: | 2023-08-28 13:25:23 |
Message-ID: | E1qacF8-001Lin-Od@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)timescale(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/9939aa8a-d7be-da2c-7715-0a0b5535a1f7(at)eisentraut(dot)org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/36e4419d1f1ef06bba58a28a870aaaa8de73bb46
Modified Files
--------------
src/backend/access/transam/xlog.c | 19 ++++++++++++++++---
src/backend/bootstrap/bootstrap.c | 11 +----------
src/backend/utils/misc/guc_tables.c | 2 +-
src/bin/initdb/initdb.c | 25 ++++++-------------------
src/bin/pg_basebackup/streamutil.c | 5 +++--
src/bin/pg_controldata/pg_controldata.c | 23 +++++++++++------------
src/bin/pg_controldata/t/001_pg_controldata.pl | 6 +++---
src/bin/pg_resetwal/Makefile | 2 ++
src/bin/pg_resetwal/pg_resetwal.c | 18 +++++++++++-------
src/bin/pg_rewind/pg_rewind.c | 12 ++++++++----
src/bin/pg_waldump/pg_waldump.c | 12 ++++++++----
src/include/utils/guc_hooks.h | 1 +
12 files changed, 71 insertions(+), 65 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2023-08-28 20:28:04 | pgsql: Stamp 16rc1. |
Previous Message | Michael Paquier | 2023-08-28 08:13:25 | pgsql: Fix some typos in wait_event_names.txt |