X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 62419D7CDB for ; Wed, 12 Oct 2005 08:40:48 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 46668-10 for ; Wed, 12 Oct 2005 11:40:41 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id EA243D7B2C for ; Wed, 12 Oct 2005 08:40:42 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 573A1416646; Wed, 12 Oct 2005 12:40:37 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 8CE0815ED9; Wed, 12 Oct 2005 12:40:06 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20031-06; Wed, 12 Oct 2005 12:40:02 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 92BEE15ED5; Wed, 12 Oct 2005 12:40:02 +0100 (BST) Message-ID: <434CF612.8010705@archonet.com> Date: Wed, 12 Oct 2005 12:40:02 +0100 From: Richard Huxton User-Agent: Thunderbird 1.4.1 (X11/20051006) MIME-Version: 1.0 To: Thomas Rokohl Cc: pgsql-odbc@postgresql.org Subject: Re: lock - feedback References: <434CEB1A.4050102@raygina.de> In-Reply-To: <434CEB1A.4050102@raygina.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.059 required=5 tests=[AWL=0.009, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/55 X-Sequence-Number: 6157 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