Re: SELECT FOR UPDATE

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Thomas Swan <tswan(at)idigx(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: SELECT FOR UPDATE
Date: 2003-07-25 01:23:25
Message-ID: 200307250123.h6P1NPL23136@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Swan wrote:
> When a SELECT FOR UPDATE query is executed, are the row level locks on a
> table acquired in any specific order such as to enhance deadlock
> prevention? ( primary key, oid, etc. )

Interesting question, because in a join, you could have multiple tables
involved. Sorry, I don't know the answer.

--
Bruce Momjian | http://candle.pha.pa.us
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Swan 2003-07-25 01:39:03 Re: SELECT FOR UPDATE
Previous Message Thomas Swan 2003-07-25 01:17:57 SELECT FOR UPDATE