git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: bb90022) | patch
Make error messages about WAL segment size more consistent
2023年8月28日 13:15:20 +0000 (15:15 +0200)
2023年8月28日 13:17:04 +0000 (15:17 +0200)
commit 36e4419d1f1ef06bba58a28a870aaaa8de73bb46
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
12 files changed:
src/backend/access/transam/xlog.c diff | blob | blame | history
src/backend/bootstrap/bootstrap.c diff | blob | blame | history
src/backend/utils/misc/guc_tables.c diff | blob | blame | history
src/bin/initdb/initdb.c diff | blob | blame | history
src/bin/pg_basebackup/streamutil.c diff | blob | blame | history
src/bin/pg_controldata/pg_controldata.c diff | blob | blame | history
src/bin/pg_controldata/t/001_pg_controldata.pl diff | blob | blame | history
src/bin/pg_resetwal/Makefile diff | blob | blame | history
src/bin/pg_resetwal/pg_resetwal.c diff | blob | blame | history
src/bin/pg_rewind/pg_rewind.c diff | blob | blame | history
src/bin/pg_waldump/pg_waldump.c diff | blob | blame | history
src/include/utils/guc_hooks.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /