Re: DBI/DBD::Pg and transactions

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: DBI/DBD::Pg and transactions
Date: 2007-07-18 21:34:46
Message-ID: 200707181434.46219@hal.medialogik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 18 July 2007 14:29, "Roderick A. Anderson" <raanders(at)acm(dot)org>
wrote:
> In the mean time if the script gets triggered again and the first
> instance isn't finished the second needs to not be able to select those
> records already being handled.

select for update won't do that. It will sit waiting for locks on the same
rows the first process is handling.

--
"Remember when computers were frustrating because they did exactly what
you told them to? That actually seems sort of quaint now." --J.D. Baldwin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pat Maddox 2007-07-18 21:48:35 Re: Need help optimizing this query
Previous Message Michael Glaesemann 2007-07-18 21:29:21 Re: Need help optimizing this query