Re: lock - feedback - Mailing list pgsql-odbc

From Richard Huxton
Subject Re: lock - feedback
Date
Msg-id 434CF612.8010705@archonet.com
Whole thread Raw
In response to lock - feedback  (Thomas Rokohl <rokohl@raygina.de>)
Responses Re: lock - feedback  (Thomas Rokohl <rokohl@raygina.de>)
List pgsql-odbc
Thomas Rokohl wrote:
> hi,
>
> i have a short question and i don't find an answer is the archive.
> i'm using the odbc interface to the db and if i lock rows with
> SELECT FOR UPDATE  and someone else try the same or
> try to read the rows, i will give him a feedback that he must wait or
> abort.
> The Problem is that the SELECT statement wait without feedback until
> the end of the world if the row is lock.

Actually, it will timeout, and you can set that with PG's configuration
setting of "statement_timeout". See the "run-time configuration" section
of the manual for details.

--
   Richard Huxton
   Archonet Ltd

pgsql-odbc by date:

Previous
From: "Dave Page"
Date:
Subject: Re: installer
Next
From: Thomas Rokohl
Date:
Subject: Re: lock - feedback