]> granicus.if.org Git - postgresql/commit
Modify elog() logic so that it won't try to longjmp(Warn_restart) before
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Nov 1999 06:13:36 +0000 (06:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Nov 1999 06:13:36 +0000 (06:13 +0000)
commite1492cc34ca7bd31ba8ed30f8638b33bc28ae3fd
tree8e4eecc701ccb203ab5deb26ea46335c54e120f2
parentdc5c7713bcd620e4b8cee6c282e55afdd2a97749
Modify elog() logic so that it won't try to longjmp(Warn_restart) before
Warn_restart has been set by the backend main loop.  This means that
elog(ERROR) or elog(FATAL) in the postmaster or during backend startup
now have well-defined behavior: proc_exit() rather than coredump.
In the case of elog() inside the postmaster, I think that proc_exit()
is probably not enough --- don't we want our child backends to be
forced to quit too?  But I don't understand Vadim's recent changes in
this area, so I'll leave it to him to look over and tweak if needed.
src/backend/tcop/postgres.c
src/backend/utils/error/elog.c
src/include/tcop/tcopprot.h