postgresql/src/include/access
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
..
attnum.h Defend against JOINs having more than 32K columns altogether. We cannot 2008-04-05 01:58:20 +00:00
clog.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
genam.h Create new routines systable_beginscan_ordered, systable_getnext_ordered, 2008-04-12 23:14:21 +00:00
gin.h Replace "amgetmulti" AM functions with "amgetbitmap", in which the whole 2008-04-10 22:25:26 +00:00
gist.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
gist_private.h Replace "amgetmulti" AM functions with "amgetbitmap", in which the whole 2008-04-10 22:25:26 +00:00
gistscan.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
hash.h Replace "amgetmulti" AM functions with "amgetbitmap", in which the whole 2008-04-10 22:25:26 +00:00
heapam.h Remove heap_release_fetch, which is no longer used anywhere; this simplifies 2008-04-03 17:12:27 +00:00
hio.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
htup.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
itup.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
multixact.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
nbtree.h Repair two places where SIGTERM exit could leave shared memory state 2008-04-16 23:59:40 +00:00
printtup.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
reloptions.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
relscan.h Phase 2 of project to make index operator lossiness be determined at runtime 2008-04-13 19:18:14 +00:00
rewriteheap.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
rmgr.h Fix recently-understood problems with handling of XID freezing, particularly 2006-11-05 22:42:10 +00:00
sdir.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
skey.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
slru.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
subtrans.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
transam.h Make TransactionIdIsInProgress check transam.c's single-item XID status cache 2008-03-11 20:20:35 +00:00
tupdesc.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
tupmacs.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
tuptoaster.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
twophase.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
twophase_rmgr.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
valid.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
xact.h Fix PREPARE TRANSACTION to reject the case where the transaction has dropped a 2008-03-04 19:54:06 +00:00
xlog.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
xlog_internal.h Replace time_t with pg_time_t (same values, but always int64) in on-disk 2008-02-17 02:09:32 +00:00
xlogdefs.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
xlogutils.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00