pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Stüwe <daniel@aus.de>
To: pgsql-sql@postgresql.org
Subject: "no wait" in locks
Date: Mon, 22 Jul 2002 02:50:12 +0200
Message-ID: <000001c23119$d15d20c0$0f64a8c0@aus.de> (raw)

Hi...

anyone knows a workaround for Oracle "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 regard
Daniel Stuewe  




view thread (2+ messages)  latest in thread

Message-ID: <000001c23119$d15d20c0$0f64a8c0@aus.de>
Permalink:  ../000001c23119$d15d20c0$0f64a8c0@aus.de/
Also on:    postgresql.org/message-id/000001c23119$d15d20c0$0f64a8c0@aus.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: daniel@aus.de
  Subject: Re: "no wait" in locks
  In-Reply-To: <000001c23119$d15d20c0$0f64a8c0@aus.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox