postgresql/src/bin/pg_controldata
Tom Lane bedb78d386 Implement sharable row-level locks, and use them for foreign key references
to eliminate unnecessary deadlocks.  This commit adds SELECT ... FOR SHARE
paralleling SELECT ... FOR UPDATE.  The implementation uses a new SLRU
data structure (managed much like pg_subtrans) to represent multiple-
transaction-ID sets.  When more than one transaction is holding a shared
lock on a particular row, we create a MultiXactId representing that set
of transactions and store its ID in the row's XMAX.  This scheme allows
an effectively unlimited number of row locks, just as we did before,
while not costing any extra overhead except when a shared lock actually
has to be shared.   Still TODO: use the regular lock manager to control
the grant order when multiple backends are waiting for a row lock.

Alvaro Herrera and Tom Lane.
2005-04-28 21:47:18 +00:00
..
po Translation updates 2005-01-17 02:41:50 +00:00
Makefile Some more missed copyright notices. Many of these look like they 2005-01-01 20:44:34 +00:00
nls.mk Translation updates 2005-01-14 08:57:06 +00:00
pg_controldata.c Implement sharable row-level locks, and use them for foreign key references 2005-04-28 21:47:18 +00:00