Re: BUG #1266: Improper unique constraint / MVCCactivitieswithin - Mailing list pgsql-bugs

From Stephan Szabo
Subject Re: BUG #1266: Improper unique constraint / MVCCactivitieswithin
Date
Msg-id 20040927074147.J70916@megazone.bigpanda.com
Whole thread Raw
Responses Re: BUG #1266: Improper unique constraint / MVCCactivitieswithin  ("Aleksey Fedorchenko" <alexey_f@ukr.net>)
List pgsql-bugs
On Mon, 27 Sep 2004, Aleksey Fedorchenko wrote:

> > And in current sources, functions 2 and 3 error with foreign key
> > violations rather than unique constraint violations.  If the constraint
> > was deferred you'd still get the unique violations, but we're still
> > looking to see which error is correct in that case.
>
> Does it mean that scripts that i sent you yesterday works fine and their
> results are proper (in mean of proper reaction on improper user
> activities) and different from described by me in first letter?
>
> Its strange because i tuned SET CONSTRAINTS in different modes but it
> didn't take any effect - i still have same results!
>
> Did you apply any patches on your pgsql instance? Because i have 3
> distribs (7.4.2/8.0.0b1/8.0.0b2) and all fails the same way.

IIRC, b2 was before Tom changed the code for doing triggers between
function statements, current sources have that code. So, b3 should have
the change I mentioned which makes the above work (for immediate
constraints).

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Dollar quoting inside a regex bracket expression
Next
From: tgl@sss.pgh.pa.us
Date:
Subject: Re: SMTP Server