postgresql/src/bin/pg_dump
Tom Lane 9a374b77fb Improve frontend error logging style.
Get rid of the separate "FATAL" log level, as it was applied
so inconsistently as to be meaningless.  This mostly involves
s/pg_log_fatal/pg_log_error/g.

Create a macro pg_fatal() to handle the common use-case of
pg_log_error() immediately followed by exit(1).  Various
modules had already invented either this or equivalent macros;
standardize on pg_fatal() and apply it where possible.

Invent the ability to add "detail" and "hint" messages to a
frontend message, much as we have long had in the backend.

Except where rewording was needed to convert existing coding
to detail/hint style, I have (mostly) resisted the temptation
to change existing message wording.

Patch by me.  Design and patch reviewed at various stages by
Robert Haas, Kyotaro Horiguchi, Peter Eisentraut and
Daniel Gustafsson.

Discussion: https://postgr.es/m/1363732.1636496441@sss.pgh.pa.us
2022-04-08 14:55:14 -04:00
..
po Translation updates 2021-06-21 12:33:50 +02:00
t Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
common.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
compress_io.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
compress_io.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
dumputils.c Allow granting SET and ALTER SYSTEM privileges on GUC parameters. 2022-04-06 13:24:33 -04:00
dumputils.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
Makefile Extend TAP tests of pg_dump to test for compression with gzip 2022-04-05 19:10:10 +09:00
nls.mk Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
parallel.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
parallel.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_backup.h Add support for --no-table-access-method in pg_{dump,dumpall,restore} 2022-01-17 14:51:46 +09:00
pg_backup_archiver.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_backup_archiver.h Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_backup_custom.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_backup_db.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_backup_db.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:04 -05:00
pg_backup_directory.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_backup_null.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_backup_tar.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_backup_utils.h Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_dump.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_dump.h Revert "Logical decoding of sequences" 2022-04-07 20:06:36 +02:00
pg_dump_sort.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_dumpall.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
pg_restore.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00