]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix bootstrap.c so that database startup process and bgwriter properly release
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Jun 2006 23:55:54 +0000 (23:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Jun 2006 23:55:54 +0000 (23:55 +0000)
commit03c1be0663a0c0252fb2c1e095f528609f1245ea
treedc9324f36b27ef4d278fc7ba53b76b3722774545
parent735529ce2429a033074537e5e48250fc5bc07a39
Fix bootstrap.c so that database startup process and bgwriter properly release
LWLocks during a panic exit.  This avoids the possible self-deadlock pointed
out by Qingqing Zhou.  Also, I noted that an error during LoadFreeSpaceMap()
or BuildFlatFiles() would result in exit(0) which would leave the postmaster
thinking all is well.  Added a critical section to ensure such errors don't
allow startup to proceed.

Backpatched to 8.1.  The 8.0 code is a bit different and I'm not sure if the
problem exists there; given we've not seen this reported from the field, I'm
going to be conservative about backpatching any further.
src/backend/bootstrap/bootstrap.c