postgres/src
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
..
backend Rename delayChkpt to delayChkptFlags. 2022-04-08 11:44:17 -04:00
bin Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
common Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
fe_utils Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
include Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
interfaces libpq: Fix pkg-config without OpenSSL 2022-04-01 17:15:24 +02:00
makefiles Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
pl Keep plpgsql.h C++-clean. 2022-03-31 18:29:10 -04:00
port Simplify coding around path_contains_parent_reference(). 2022-01-31 13:53:38 -05:00
template Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
test Remove error message hints mentioning configure options 2022-04-08 07:41:55 +02:00
timezone Update copyright for 2022 2022-01-07 19:04:57 -05:00
tools Helper script to apply PGDLLIMPORT markings. 2022-04-08 08:06:10 -04:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Update Unicode data to CLDR 41 2022-04-06 08:17:33 +02:00
Makefile.shlib AIX: Fix missing libpq symbols by respecting SHLIB_EXPORTS. 2021-09-06 11:27:59 -07:00
nls-global.mk Improve frontend error logging style. 2022-04-08 14:55:14 -04:00