From: | Christian Rank <christian(dot)rank(at)rz(dot)uni-passau(dot)de> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: referential integrity constraints not checked inside |
Date: | 2004-05-13 14:19:17 |
Message-ID: | 40A383E5.6020401@rz.uni-passau.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Tom Lane wrote:
> Christian Rank <christian(dot)rank(at)rz(dot)uni-passau(dot)de> writes:
>
>>... according to the docs, the validity of a constraint should be
>>checked after each statement unless this behaviour is altered with a SET
>>CONSTRAINTS statement.
>
>
> "Statement" means "interactive command" in that context --- in other
> words, the constraints won't be checked until after control returns from
> your function.
Thanks very much, that clarifies this behaviour of PostgreSQL -> it's
definitively a feature, not a bug :-)
--
Dr. Christian Rank
Rechenzentrum Universität Passau
Innstr. 33
D-94032 Passau
GERMANY
Tel.: 0851/509-1838
Fax: 0851/509-1802
PGP public key see http://www.rz.uni-passau.de/mitarbeiter/rank
From | Date | Subject | |
---|---|---|---|
Next Message | James M Moe | 2004-05-13 15:26:37 | Re: referential integrity constraints not checked inside |
Previous Message | Tom Lane | 2004-05-13 14:09:28 | Re: referential integrity constraints not checked inside |