Re: Initially Deffered - FK

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: denis(at)coralindia(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Initially Deffered - FK
Date: 2004-01-19 10:33:30
Message-ID: 20040119023010.Y38138@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Fri, 16 Jan 2004 denis(at)coralindia(dot)com wrote:

> Thanks for your reply.
>
> But, you will agree that result should be same JUST BEFORE and JUST AFTER
> commit ( assuming no one is working on the database and i am the only user
> connected.)

If you use the definition we're using now, then no, the above is not true.
The row would still exist just before commit because the on delete action
has not happened. The row would not exist just after commit because the
on delete action now has. Whether this definition is correct per spec is
hard to say, but there've been arguments on the subject in the past that
have generally ended without a firm understanding of the specs intention.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Christoph Haller 2004-01-19 11:12:59 Re: How can I get the last element out of GROUP BY sets?
Previous Message Tom Lane 2004-01-19 06:20:03 Re: DROP TRIGGER