postgresql/src/bin/pg_test_fsync
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 Remove unused module imports from TAP tests 2022-03-24 20:51:40 +01:00
.gitignore Improve range checks of options for pg_test_fsync and pg_test_timing 2020-09-28 10:13:59 +09:00
Makefile Clean up after newly-added tests for pg_test_fsync and pg_test_timing. 2020-10-07 13:27:33 -04:00
nls.mk Translation updates 2021-05-17 14:30:27 +02:00
pg_test_fsync.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00