public inbox for [email protected]
help / color / mirror / Atom feedFrom: Bruce Momjian <[email protected]>
To: Thomas F. O'Connell <[email protected]>
Cc: [email protected]
Subject: Re: ROW SHARE/SELECT ... FOR UPDATE + foreign keys
Date: Fri, 22 Jul 2005 01:13:22 -0400 (EDT)
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
Thomas F. O'Connell wrote:
> What would people think of adding a note to the ROW SHARE section of
> Table-Level Locks remarking on the fact that referential integrity
> checks expressed through foreign keys do SELECT ... FOR UPDATES.
>
> http://www.postgresql.org/docs/8.0/static/explicit-
> locking.html#LOCKING-TABLES
>
> It was somewhat challenging today to try to track down a pervasive
> locking issue related to a table not directly referenced in a stored
> procedure but that was referenced by a key in a table that was being
> updated.
>
> I'm not sure how this changes with the new shared row locking
> implementation in 8.1...
>
8.1 will use _shared_ row locks for such cases.
--
Bruce Momjian | http://candle.pha.pa.us
[email protected] | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
view thread (2+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: ROW SHARE/SELECT ... FOR UPDATE + foreign keys
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox