postgresql/src/include
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
..
access Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
bootstrap Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
catalog Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
commands Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
common Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
datatype Fix overflow hazards in interval input and output conversions. 2022-04-02 16:12:29 -04:00
executor Track I/O timing for temporary file blocks in EXPLAIN (BUFFERS) 2022-04-08 11:27:21 +09:00
fe_utils Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
foreign Update copyright for 2022 2022-01-07 19:04:57 -05:00
jit Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
lib Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
libpq Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
mb Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
nodes Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
optimizer Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
parser Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
partitioning Refactor and cleanup runtime partition prune code a little 2022-04-05 11:46:48 +02:00
port Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
portability Update copyright for 2022 2022-01-07 19:04:57 -05:00
postmaster Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
regex Update copyright for 2022 2022-01-07 19:04:57 -05:00
replication Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
rewrite Update copyright for 2022 2022-01-07 19:04:57 -05:00
snowball Update copyright for 2022 2022-01-07 19:04:57 -05:00
statistics Add stxdinherit flag to pg_statistic_ext_data 2022-01-16 13:38:01 +01:00
storage Rename delayChkpt to delayChkptFlags. 2022-04-08 11:44:17 -04:00
tcop Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
tsearch Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
utils Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
c.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
fmgr.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
funcapi.h Create routine able to set single-call SRFs for Materialize mode 2022-03-07 10:26:29 +09:00
getaddrinfo.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
getopt_long.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
Makefile Build in some knowledge about foreign-key relationships in the catalogs. 2021-02-02 17:11:55 -05:00
miscadmin.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
pg_config.h.in libpq: Allow IP address SANs in server certificates 2022-04-01 15:51:23 +02:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_manual.h Fix DROP {DATABASE,TABLESPACE} on Windows. 2022-02-12 10:21:23 +13:00
pg_getopt.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
pg_trace.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pgstat.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
pgtar.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pgtime.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
port.h Clean up messy API for src/port/thread.c. 2022-01-11 13:46:20 -05:00
postgres.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
postgres_ext.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
postgres_fe.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
rusagestub.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
windowapi.h Update copyright for 2022 2022-01-07 19:04:57 -05:00