check if table/object is locked

From: Jonathan Weiss <infojowe(at)gmx(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Subject: check if table/object is locked
Date: 2003-03-09 15:14:48
Message-ID: 28935.1047222888@www1.gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

hi!

i have a problem. i developed an application for administrating cliet and
their sales. if i want to edit a client i load him by select for update. now if
another person want to update him, the query waits, until the first
connection is closed. this is unacceptable, because the whole application is doing
nothing until the db is responding. how can i check if the client is locked
before i want to load him?

thanks,

Jonathan Weiss

--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Rod Taylor 2003-03-09 15:35:39 Re: check if table/object is locked
Previous Message Stephan Szabo 2003-03-09 08:51:00 Re: pl/pgsql how to return multiple values from a function