postgresql/contrib/miscutil
Tom Lane bd272cace6 Mega-commit to make heap_open/heap_openr/heap_close take an
additional argument specifying the kind of lock to acquire/release (or
'NoLock' to do no lock processing).  Ensure that all relations are locked
with some appropriate lock level before being examined --- this ensures
that relevant shared-inval messages have been processed and should prevent
problems caused by concurrent VACUUM.  Fix several bugs having to do with
mismatched increment/decrement of relation ref count and mismatched
heap_open/close (which amounts to the same thing).  A bogus ref count on
a relation doesn't matter much *unless* a SI Inval message happens to
arrive at the wrong time, which is probably why we got away with this
sloppiness for so long.  Repair missing grab of AccessExclusiveLock in
DROP TABLE, ALTER/RENAME TABLE, etc, as noted by Hiroshi.
Recommend 'make clean all' after pulling this update; I modified the
Relation struct layout slightly.
Will post further discussion to pghackers list shortly.
1999-09-18 19:08:25 +00:00
..
Makefile Hi, 1999-06-05 19:09:48 +00:00
misc_utils.c Mega-commit to make heap_open/heap_openr/heap_close take an 1999-09-18 19:08:25 +00:00
misc_utils.doc From: Massimo Dal Zotto <dz@cs.unitn.it> 1998-08-30 19:37:51 +00:00
misc_utils.h Hi, 1999-06-05 19:09:48 +00:00
misc_utils.sql.in Hi, 1999-06-05 19:09:48 +00:00