Remove ShutdownBufferPoolAccess exit callback, and do the work in

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 8a6fab412e35d8495201a13d8258f26b730306f5
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2002-09-25T20:31:40Z
Releases: 7.3.1
Remove ShutdownBufferPoolAccess exit callback, and do the work in
ProcKill instead, where we still have a PGPROC with which to wait on
LWLocks.  This fixes 'can't wait without a PROC structure' failures
occasionally seen during backend shutdown (I'm surprised they weren't
more frequent, actually).  Add an Assert() to LWLockAcquire to help
catch any similar mistakes in future.  Fix failure to update MyProcPid
for standalone backends and pgstat processes.

Files