Clean up backend-exit-time cleanup behavior. Use on_shmem_exit callbacks
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Dec 2000 00:44:50 +0000 (00:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Dec 2000 00:44:50 +0000 (00:44 +0000)
commit244b867704618de2efc34590f0775c1f09382e7f
tree1b537ae32c86e2814035feeda3062f89b89fdc14
parent404ee8484505f8a2c9b79b878abed4bd35214102
Clean up backend-exit-time cleanup behavior.  Use on_shmem_exit callbacks
to ensure that we have released buffer refcounts and so forth, rather than
putting ad-hoc operations before (some of the calls to) proc_exit.  Add
commentary to discourage future hackers from repeating that mistake.
14 files changed:
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/commands/trigger.c
src/backend/libpq/pqcomm.c
src/backend/storage/buffer/buf_init.c
src/backend/storage/lmgr/proc.c
src/backend/tcop/postgres.c
src/backend/utils/error/elog.c
src/backend/utils/init/postinit.c
src/include/access/xlog.h
src/include/commands/trigger.h
src/include/libpq/libpq.h
src/include/storage/bufmgr.h
src/include/utils/elog.h