aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuild.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-05-10 00:54:32 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-05-10 00:54:56 -0400
commitfd71421b0187de0e2bf76ff66b4a9433bd96c4a0 (patch)
tree7aeff9ea8382f0f01c0a07e29162f60fb06a7d7c /src/backend/access/gist/gistbuild.c
parente78cc624e87709e04960966c97a8d9f927f3d2f7 (diff)
downloadpostgresql-fd71421b0187de0e2bf76ff66b4a9433bd96c4a0.tar.gz
postgresql-fd71421b0187de0e2bf76ff66b4a9433bd96c4a0.zip
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.
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions