Skip site navigation (1) Skip section navigation (2)

Re: ROW SHARE/SELECT ... FOR UPDATE + foreign keys

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Thomas F(dot) O'Connell" <tfo(at)sitening(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: ROW SHARE/SELECT ... FOR UPDATE + foreign keys
Date: 2005-07-22 05:13:22
Message-ID: (view raw or whole thread)
Lists: pgsql-docs
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.
> 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                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-docs by date

Next:From: Halley Pacheco de OliveiraDate: 2005-07-26 10:06:42
Subject: PostgreSQL 8.0.3 Documentation - Chapter 23. Monitoring Database Activity
Previous:From: Thomas F. O'ConnellDate: 2005-07-21 21:00:43
Subject: Re: Beta Docs

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group