Received: from mail-relay.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id 0C135474E71 for ; Sun, 21 Jul 2002 23:26:33 -0400 (EDT) Received: (qmail 4648 invoked from network); 22 Jul 2002 03:16:52 -0000 Received: from news1.trade-india.com (HELO www.trade-india.com) (130.94.20.27) by infocom-236-129-del.trade-india.com with SMTP; 22 Jul 2002 03:16:52 -0000 Received: (qmail 14523 invoked by uid 99); 22 Jul 2002 03:26:25 -0000 Received: from 203.196.138.236 (SquirrelMail authenticated user mallah) by mail.trade-india.com with HTTP; Mon, 22 Jul 2002 08:56:25 +0530 (IST) Message-ID: <62532.203.196.138.236.1027308385.squirrel@mail.trade-india.com> Date: Mon, 22 Jul 2002 08:56:25 +0530 (IST) Subject: Re: 'no wait' option for locks From: To: In-Reply-To: <000801c2311c$b37bde40$0f64a8c0@aus.de> References: <000801c2311c$b37bde40$0f64a8c0@aus.de> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200207/319 X-Sequence-Number: 8697 Hi, Why not the program create a lock file on start and delete it when finished. regds mallah. > Hi... > > anyone knows a workaround for Oracles "no wait" option in "SELECT ... > FOR UPDATE"? > > I wrote a programm which runs twice. Both poll the pgsql database all 5 > seconds and make an "SELECT ... FOR UPDATE" for the first row found. > After some work and commit the next row is processed. The second task > waits until the first hast commited, but it should detect the lock and > continue work with next row. > > How can i detect this lock? Oracle returns with "no wait" option an sql > error code. > > Any hints? > > best regards > Daniel Stuewe > > > ---------------------------(end of > broadcast)--------------------------- TIP 6: Have you searched our list > archives? > > http://archives.postgresql.org ----------------------------------------- Get your free web based email at trade-india.com. "India's Leading B2B eMarketplace.!" http://www.trade-india.com/