postgresql/src/backend/postmaster
Tom Lane 8d498a5c8a Fix bogus coding in WaitForBackgroundWorkerShutdown().
Some conditions resulted in "return" directly out of a PG_TRY block,
which left the exception stack dangling, and to add insult to injury
failed to restore the state of set_latch_on_sigusr1.

This is a bug only in 9.5; in HEAD it was accidentally fixed by commit
db0f6cad4, which removed the surrounding PG_TRY block.  However, I (tgl)
chose to apply the patch to HEAD as well, because the old coding was
gratuitously different from WaitForBackgroundWorkerStartup(), and there
would indeed have been no bug if it were done like that to start with.

Dmitry Ivanov

Discussion: <1637882.WfYN5gPf1A@abook>
2016-08-04 16:06:14 -04:00
..
autovacuum.c Force idle_in_transaction_session_timeout off in pg_dump and autovacuum. 2016-06-15 10:53:03 -04:00
bgworker.c Fix bogus coding in WaitForBackgroundWorkerShutdown(). 2016-08-04 16:06:14 -04:00
bgwriter.c Revert bf08f2292f 2016-04-06 14:03:46 +01:00
checkpointer.c Provide much better wait information in pg_stat_activity. 2016-03-10 12:44:09 -05:00
fork_process.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Allow background workers to be started dynamically. 2013-07-16 13:02:15 -04:00
pgarch.c Avoid unlikely data-loss scenarios due to rename() without fsync. 2016-03-09 18:53:53 -08:00
pgstat.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
postmaster.c Do not let PostmasterContext survive into background workers. 2016-08-03 14:48:13 -04:00
startup.c Rework wait for AccessExclusiveLocks on Hot Standby 2016-03-10 19:26:24 +00:00
syslogger.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
walwriter.c Provide much better wait information in pg_stat_activity. 2016-03-10 12:44:09 -05:00