From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Rod Taylor <rbt(at)rbt(dot)ca> |
Cc: | Paulo Scardine <paulos(at)cimed(dot)ind(dot)br>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: SELECT FOR UPDATE NOWAIT |
Date: | 2003-07-22 01:09:59 |
Message-ID: | 200307220109.h6M19xi07252@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Rod Taylor wrote:
-- Start of PGP signed section.
> On Fri, 2003-07-18 at 19:46, Paulo Scardine wrote:
> > My boss is asking for something like Oracle's "SELECT FOR UPDATE NOWAIT".
> >
> > Is there any such feature? If no, should I look forward into implementing
> > this? Any advice?
>
> Lookup STATEMENT_TIMEOUT and set it to a very short time.
Some people have said they want to distinguish between a slow query
(busy system) and waiting on a lock. I can particulary see wanting to
do a NOWAIT only on exclusive locks --- not sure how many really want
that, though.
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2003-07-22 01:16:25 | Re: php with postgres |
Previous Message | Bruce Momjian | 2003-07-22 01:06:49 | Re: Another TODO for PL/pgSQL -- Dynamic colums |