postgresql/src/include/storage
Tom Lane d1cbd26ded Repair two places where SIGTERM exit could leave shared memory state
corrupted.  (Neither is very important if SIGTERM is used to shut down the
whole database cluster together, but there's a problem if someone tries to
SIGTERM individual backends.)  To do this, introduce new infrastructure
macros PG_ENSURE_ERROR_CLEANUP/PG_END_ENSURE_ERROR_CLEANUP that take care
of transiently pushing an on_shmem_exit cleanup hook.  Also use this method
for createdb cleanup --- that wasn't a shared-memory-corruption problem,
but SIGTERM abort of createdb could leave orphaned files lying around.

Backpatch as far as 8.2.  The shmem corruption cases don't exist in 8.1,
and the createdb usage doesn't seem important enough to risk backpatching
further.
2008-04-16 23:59:40 +00:00
..
backendid.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
block.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
buf.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
buf_internals.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
buffile.h Provide a build-time option to store large relations as single files, rather 2008-03-10 20:06:27 +00:00
bufmgr.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
bufpage.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
fd.h Provide a build-time option to store large relations as single files, rather 2008-03-10 20:06:27 +00:00
freespace.h Reduce memory consumption during VACUUM of large relations, by using 2008-03-10 02:04:10 +00:00
ipc.h Repair two places where SIGTERM exit could leave shared memory state 2008-04-16 23:59:40 +00:00
item.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
itemid.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
itempos.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
itemptr.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
large_object.h Separate snapshot management code from tuple visibility code, create a 2008-03-26 16:20:48 +00:00
lmgr.h Fix PREPARE TRANSACTION to reject the case where the transaction has dropped a 2008-03-04 19:54:06 +00:00
lock.h lmgr.c:DescribeLockTag was never taught about virtual xids, per Greg Stark. 2008-01-08 23:18:51 +00:00
lwlock.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
off.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pg_sema.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pg_shmem.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pmsignal.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pos.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
proc.h Revert addition of pg_terminate_backend() because of race conditions. 2008-04-15 20:28:47 +00:00
procarray.h Separate snapshot management code from tuple visibility code, create a 2008-03-26 16:20:48 +00:00
relfilenode.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
s_lock.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
shmem.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
sinval.h Modify interactions between sinval.c and sinvaladt.c. The code that actually 2008-03-16 19:47:34 +00:00
sinvaladt.h Move ProcState definition into sinvaladt.c from sinvaladt.h, since it's not 2008-03-17 11:50:27 +00:00
smgr.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
spin.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00