Re: Serializable access giving wrong error messages? - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Serializable access giving wrong error messages?
Date
Msg-id 27844.1009505211@sss.pgh.pa.us
Whole thread Raw
In response to Re: Serializable access giving wrong error messages?  (Hiroshi Inoue <Inoue@tpf.co.jp>)
List pgsql-bugs
Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> Currently PostgreSQL ignores the update/deleted
> tuples from the first which don't satisfy the
> qualification at the point of snapshot.

It does?  It looks to me like we use SnapshotDirty time qual check
and wait for any uncommitted transaction.  This essentially means
that we use "latest committed" state, not the query-start snapshot.
Look at _bt_check_unique in nbtinsert.c.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: Serializable access giving wrong error messages?
Next
From: Hiroshi Inoue
Date:
Subject: Re: Serializable access giving wrong error messages?