postgresql/src/backend/access
Tom Lane 4dab3d5ae1 Change the autovacuum launcher to use WaitLatch instead of a poll loop.
In pursuit of this (and with the expectation that WaitLatch will be needed
in more places), convert the latch field that was already added to PGPROC
for sync rep into a generic latch that is activated for all PGPROC-owning
processes, and change many of the standard backend signal handlers to set
that latch when a signal happens.  This will allow WaitLatch callers to be
wakened properly by these signals.

In passing, fix a whole bunch of signal handlers that had been hacked to do
things that might change errno, without adding the necessary save/restore
logic for errno.  Also make some minor fixes in unix_latch.c, and clean
up bizarre and unsafe scheme for disowning the process's latch.  Much of
this has to be back-patched into 9.1.

Peter Geoghegan, with additional work by Tom
2011-08-10 12:22:21 -04:00
..
common Change the way string relopts are allocated. 2011-08-09 15:25:44 +03:00
gin Move Trigger and TriggerDesc structs out of rel.h into a new reltrigger.h 2011-07-04 14:35:58 -04:00
gist Change the way the offset of downlink is stored in GISTInsertStack. 2011-07-15 12:18:30 +03:00
hash Move Trigger and TriggerDesc structs out of rel.h into a new reltrigger.h 2011-07-04 14:35:58 -04:00
heap Try to acquire relation locks in RangeVarGetRelid. 2011-07-08 22:19:30 -04:00
index Avoid having two copies of the HOT-chain search logic. 2011-06-27 10:27:17 -04:00
nbtree Move Trigger and TriggerDesc structs out of rel.h into a new reltrigger.h 2011-07-04 14:35:58 -04:00
transam Change the autovacuum launcher to use WaitLatch instead of a poll loop. 2011-08-10 12:22:21 -04:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00