Re: more select-for-update questions

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: more select-for-update questions
Date: 2007-08-15 00:51:57
Message-ID: 20070815005157.GW9206@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ed L. wrote:
> I ran a simple select-for-update test on 8.1.2 and was curious as
> to why the semantics are what they are. Specifically, when you
> have multiple select-for-update-limit queries on the same rows,
> why are rows selected by the blocked query before knowing if
> some of those rows will be removed/eliminated by a preceding
> select-for-update-limit?

This is how it is just because of "historical reasons", i.e. it's a
known misfeature that no one has bothered to fix.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message novnov 2007-08-15 01:12:13 Re: Trigger not working as expected, first row gets a null value
Previous Message Tom Lane 2007-08-14 23:50:28 Re: pqlib in c++: PQconnectStart PQconnectPoll