Re: why it doesn't work? referential integrity

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: why it doesn't work? referential integrity
Date: 2007-08-11 17:21:54
Message-ID: 20070811100827.G71318@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 11 Aug 2007, Pavel Stehule wrote:

> Hello
>
> I found strange postgresql's behave. Can somebody explain it?

There's a bug since it should work for any number, but we've likely missed
something. I'm not sure why 2 references work, as I'd expect it to stop
working after 1 with the likely causes, but one of the constraint checks
is happening before the row is finished being updated.

I don't think it'll help for this case (since it revolved around multiple
tables), but could you try the patch from
http://archives.postgresql.org/pgsql-bugs/2007-05/msg00177.php
to see if it helps this case?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2007-08-11 17:51:41 Re: why it doesn't work? referential integrity
Previous Message Pavel Stehule 2007-08-11 16:10:04 Re: Trigger Procedure Error: NEW used in query that is not in a rule