Re: 'no wait' option for locks

From: <mallah(at)trade-india(dot)com>
To: <pgsql(at)aus(dot)de>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: 'no wait' option for locks
Date: 2002-07-22 03:26:25
Message-ID: 62532.203.196.138.236.1027308385.squirrel@mail.trade-india.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Hubert depesz Lubaczewski 2002-07-22 08:26:44 Re: SQL problem with aggregate functions.
Previous Message Daniel Stüwe 2002-07-22 01:10:52 "no wait" option for locks