]> granicus.if.org Git - postgresql/commit
Cause ShutdownPostgres to do a normal transaction abort during backend
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Aug 2005 03:12:16 +0000 (03:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Aug 2005 03:12:16 +0000 (03:12 +0000)
commit7117cd3a77afcf76b6488bd3e1d06f3160595027
tree0d2feadbd044021b3cc8b5a89a68a6e720bb0afb
parent89439b8c4fabf8e882f55c87979512af081f370b
Cause ShutdownPostgres to do a normal transaction abort during backend
exit, instead of trying to take shortcuts.  Introduce some additional
shutdown callback routines to eliminate kluges like having ProcKill
be responsible for shutting down the buffer manager.  Ensure that the
order of operations during shutdown is predictable and what you would
expect given the module layering.
src/backend/bootstrap/bootstrap.c
src/backend/postmaster/pgstat.c
src/backend/storage/buffer/buf_init.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/file/fd.c
src/backend/storage/lmgr/proc.c
src/backend/storage/smgr/smgr.c
src/backend/tcop/postgres.c
src/backend/utils/init/postinit.c
src/include/storage/bufmgr.h
src/include/storage/fd.h