postgresql/src/fe_utils
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
..
.gitignore Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
archive.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
cancel.c Avoid calling gettext() in signal handlers. 2022-01-17 13:30:04 -05:00
conditional.c Allow pgbench to retry in some cases. 2022-03-23 19:05:45 +09:00
connect_utils.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00
mbprint.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
option_utils.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
parallel_slot.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
print.c Clean up assorted failures under clang's -fsanitize=undefined checks. 2022-03-03 18:13:24 -05:00
psqlscan.l Reject trailing junk after numeric literals 2022-02-16 10:37:31 +01:00
query_utils.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
recovery_gen.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
simple_list.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
string_utils.c psql: add \dconfig command to show server's configuration parameters. 2022-04-07 17:09:51 -04:00