From: Scott Marlowe <scott.marlowe@gmail.com>
To: PostgreSQL <malcus@terra.com.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: Row Lock
Date: Thu, 22 Nov 2007 13:12:37 -0600
Message-ID: <dcc563d10711221112m62d64ae9s3804c6da6c26d03b@mail.gmail.com> (raw)
In-Reply-To: <fi4hto$p6j$1@news.hub.org>
References: <fi4hto$p6j$1@news.hub.org>
On Nov 22, 2007 12:31 PM, PostgreSQL <malcus@terra.com.br> wrote:
> I'm having a problem with some row locks where one user does the lock
> and another user try to do the same, but of course, the second one will
> be waiting the first user unlock it.
>
> I would like to know if there is a way to discover if that row is locked
> before I try to do the lock.
>
> I have been researching something like ROWID but I couldn't find
> anything useful.
I believe you want the NOWAIT option on your select.
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: pgsql-admin@postgresql.org
Cc: scott.marlowe@gmail.com, malcus@terra.com.br
Subject: Re: Row Lock
In-Reply-To: <dcc563d10711221112m62d64ae9s3804c6da6c26d03b@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox