Re: EvalPlanQual seems a tad broken

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-hackers(at)postgreSQL(dot)org>,"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: EvalPlanQual seems a tad broken
Date: 2009-10-13 14:38:12
Message-ID: 4AD44A84020000250002B8E6@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> 5. Now commit in the second session. First session resumes and
> prints
>
> f1 | f2 | f3 | f4
> ----+----+----+-----
> 1 | 1 | 1 | 111
> 1 | 1 | 1 | 112
> 2 | 42 | 2 | 113
> 2 | 42 | 2 | 114
> 2 | 42 | 2 | 113
> 2 | 42 | 2 | 114
> (6 rows)
>
> Of course the expected answer is
>
> f1 | f2 | f3 | f4
> ----+----+----+-----
> 1 | 1 | 1 | 111
> 1 | 1 | 1 | 112
> 2 | 42 | 2 | 113
> 2 | 42 | 2 | 114
> (4 rows)
>
> which is what you'll get if you simply repeat the test query.

Is this related to issue 4593? (SELECT FOR UPDATE can return results
in a sequence inconsistent with actual result rows and the ORDER BY
clause -- rows are ordered by the pre-UPDATE values, while the results
show the post-UPDATE values.)

http://archives.postgresql.org/pgsql-bugs/2009-01/msg00017.php

On the face of it, it seems very similar. Will the patch address this
anomaly of SELECT FOR UPDATE, too?

-Kevin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-10-13 14:45:03 Re: EvalPlanQual seems a tad broken
Previous Message Tom Lane 2009-10-13 14:35:15 Re: COPY enhancements