postgresql/src/include/utils
Tom Lane d5249bb409 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:51 +00:00
..
acl.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
array.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
ascii.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
builtins.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
cash.h Widen the money type to 64 bits. 2007-01-03 01:19:51 +00:00
catcache.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
combocid.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
date.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
datetime.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
datum.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
dynahash.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
dynamic_loader.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
elog.h Repair two places where SIGTERM exit could leave shared memory state 2008-04-16 23:59:51 +00:00
errcodes.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
flatfiles.h Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
fmgrtab.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
formatting.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
geo_decls.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
guc.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
guc_tables.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
help_config.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
hsearch.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
inet.h Change the declaration of struct varlena so that the length word is 2008-02-23 19:11:55 +00:00
int8.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
inval.h Fix heap_page_prune's problem with failing to send cache invalidation 2008-03-13 18:00:39 +00:00
logtape.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
lsyscache.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
memutils.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
nabstime.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
numeric.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
palloc.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pg_crc.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pg_locale.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pg_lzcompress.h pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
pg_rusage.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
plancache.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
portal.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
ps_status.h Add GUC update_process_title to control whether 'ps' display is updated 2006-06-27 22:16:44 +00:00
rel.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
relcache.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
resowner.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
selfuncs.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
syscache.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
timestamp.h Prevent integer overflow within the integer-datetimes version of 2008-01-23 21:26:13 +00:00
tqual.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
tuplesort.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
tuplestore.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
typcache.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
tzparser.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
uuid.h Fix some missed copyright updates. 2008-01-01 20:31:21 +00:00
varbit.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
xml.h Revise memory management for libxml calls. Instead of keeping libxml's data 2008-01-15 18:57:00 +00:00