postgresql/src/include/utils
Tom Lane ce646d7192 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-17 00:00:01 +00:00
..
acl.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
array.h Tweak accumArrayResult() to double the size of its working arrays when 2006-11-08 19:24:38 +00:00
ascii.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
builtins.h Temporary fix for the problem that pg_stat_activity, inet_client_addr(), 2007-05-17 23:31:59 +00:00
cash.h Allow include files to compile own their own. 2006-07-13 16:49:20 +00:00
catcache.h Fix SysCacheGetAttr() to handle the case where the specified syscache has not 2006-10-06 18:23:35 +00:00
date.h Allow include files to compile own their own. 2006-07-13 16:49:20 +00:00
datetime.h Fix a bug in input processing for the "interval" type. Previously, 2007-05-29 04:59:15 +00:00
datum.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
dynahash.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
dynamic_loader.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
elog.h Repair two places where SIGTERM exit could leave shared memory state 2008-04-17 00:00:01 +00:00
errcodes.h Code review for SELECT INTO STRICT patch: use saner choices of error 2006-06-16 23:29:27 +00:00
flatfiles.h Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
fmgrtab.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
formatting.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
geo_decls.h Allow include files to compile own their own. 2006-07-13 16:49:20 +00:00
guc.h Clean up local redeclarations of variables with DLLIMPORT, per report 2006-10-19 18:32:48 +00:00
guc_tables.h The attached patch changes units of the some default values in 2006-10-03 21:11:55 +00:00
help_config.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
hsearch.h Fix dynahash.c to suppress hash bucket splits while a hash_seq_search() scan 2007-04-26 23:24:57 +00:00
inet.h Allow each C include file to compile on its own by including any needed 2006-07-11 13:54:25 +00:00
int8.h SQL2003-standard statistical aggregates, by Sergey Koposov. I've added only 2006-07-28 18:33:04 +00:00
inval.h More include file adjustments. 2006-07-13 17:47:02 +00:00
logtape.h Repair old performance bug in tuplesort.c/logtape.c. In the case where 2006-03-07 19:06:50 +00:00
lsyscache.h Fix ALTER COLUMN TYPE to preserve the tablespace and reloptions of indexes 2007-10-13 15:55:49 +00:00
memutils.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nabstime.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
numeric.h Allow each C include file to compile on its own by including any needed 2006-07-11 13:54:25 +00:00
palloc.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_crc.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_locale.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_lzcompress.h Cleanup for pglz_compress code: remove dead code, const-ify API of 2006-10-05 23:33:33 +00:00
pg_rusage.h On platforms that have getrlimit(RLIMIT_STACK), use it to ensure that 2006-10-07 19:25:29 +00:00
portal.h pgindent run for 8.2. 2006-10-04 00:30:14 +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 pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
relcache.h Fix recently-identified PITR recovery hazard: the base backup could contain 2006-11-05 23:40:31 +00:00
resowner.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
selfuncs.h Improve the performance of LIKE/regex estimation in non-C locales, by making 2007-11-07 22:37:33 +00:00
syscache.h More include file adjustments. 2006-07-13 18:01:02 +00:00
timestamp.h Prevent integer overflow within the integer-datetimes version of 2008-01-23 21:26:20 +00:00
tqual.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
tuplesort.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
tuplestore.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
typcache.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
tzparser.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
varbit.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00