postgresql/src/backend/postmaster
Tom Lane fd71421b01 Improve tests for postmaster death in auxiliary processes.
In checkpointer and walwriter, avoid calling PostmasterIsAlive unless
WaitLatch has reported WL_POSTMASTER_DEATH.  This saves a kernel call per
iteration of the process's outer loop, which is not all that much, but a
cycle shaved is a cycle earned.  I had already removed the unconditional
PostmasterIsAlive calls in bgwriter and pgstat in previous patches, but
forgot that WL_POSTMASTER_DEATH is supposed to be treated as untrustworthy
(per comment in unix_latch.c); so adjust those two cases to match.

There are a few other places where the same idea might be applied, but only
after substantial code rearrangement, so I didn't bother.
2012-05-10 00:54:56 -04:00
..
Makefile Refactor xlog.c to create src/backend/postmaster/startup.c 2011-11-02 14:25:01 +00:00
autovacuum.c Classify DROP operations by whether or not they are user-initiated. 2012-01-26 09:30:27 -05:00
bgwriter.c Improve tests for postmaster death in auxiliary processes. 2012-05-10 00:54:56 -04:00
checkpointer.c Improve tests for postmaster death in auxiliary processes. 2012-05-10 00:54:56 -04:00
fork_process.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
pgarch.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
pgstat.c Improve tests for postmaster death in auxiliary processes. 2012-05-10 00:54:56 -04:00
postmaster.c Fix some typos 2012-04-22 19:23:47 +03:00
startup.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
syslogger.c Fix syslogger's rotation disable/re-enable logic. 2012-04-27 00:12:42 -04:00
walwriter.c Improve tests for postmaster death in auxiliary processes. 2012-05-10 00:54:56 -04:00