postgresql/src/backend/utils
Tom Lane 1f9158ba48 Suppress log spam from multiple reports of SIGQUIT shutdown.
When the postmaster sends SIGQUIT to its children, there's no real
need for all the children to log that fact; the postmaster already
made a log entry about it, so adding perhaps dozens or hundreds of
child-process log entries adds nothing of value.  So, let's introduce
a new ereport level to specify "WARNING, but never send to log" and
use that for these messages.

Such a change wouldn't have been desirable before commit 7e784d1dc,
because if someone manually SIGQUIT's a backend, we *do* want to log
that.  But now we can tell the difference between a signal that was
issued by the postmaster and one that was not with reasonable
certainty.

While we're here, also clear error_context_stack before ereport'ing,
to prevent error callbacks from being invoked in the signal-handler
context.  This should reduce the odds of getting hung up while trying
to notify the client.

Per a suggestion from Andres Freund.

Discussion: https://postgr.es/m/20201225230331.hru3u6obyy6j53tk@alap3.anarazel.de
2020-12-29 18:02:38 -05:00
..
adt Add support of multirange matching to the existing range GiST indexes 2020-12-29 23:36:43 +03:00
cache Fix inconsistent code with shared invalidations of snapshots 2020-12-28 22:16:49 +09:00
error Suppress log spam from multiple reports of SIGQUIT shutdown. 2020-12-29 18:02:38 -05:00
fmgr Multirange datatypes 2020-12-20 07:20:33 +03:00
hash Improve hash_create()'s API for some added robustness. 2020-12-15 11:38:53 -05:00
init Fix assorted issues in backend's GSSAPI encryption support. 2020-12-28 17:44:17 -05:00
mb Fix some typos 2020-11-14 11:43:10 +09:00
misc Revert "Add key management system" (978f869b99) & later commits 2020-12-27 21:37:42 -05:00
mmgr Improve hash_create()'s API for some added robustness. 2020-12-15 11:38:53 -05:00
resowner Change SHA2 implementation based on OpenSSL to use EVP digest routines 2020-12-04 10:49:23 +09:00
sort Fix a few more generator scripts to produce pgindent-clean output. 2020-09-21 13:58:26 -04:00
time Improve hash_create()'s API for some added robustness. 2020-12-15 11:38:53 -05:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
errcodes.txt Make SQL/JSON error code names match SQL standard 2020-04-30 09:34:54 +02:00
Gen_dummy_probes.pl Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Gen_dummy_probes.sed Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Gen_fmgrtab.pl Remove useless entries for aggregate functions from fmgrtab.c. 2020-11-04 11:25:56 -05:00
generate-errcodes.pl Standardize order of use strict and use warnings in Perl code 2020-09-21 17:04:36 +02:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
probes.d Update copyrights for 2020 2020-01-01 12:21:45 -05:00