From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | jan(dot)kort(at)genetics(dot)nl |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #14025: Unable to validate constraints |
Date: | 2016-03-17 23:33:47 |
Message-ID: | 16650.1458257627@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
jan(dot)kort(at)genetics(dot)nl writes:
> When I do:
> - disable trigger all
> - incorrect foreign key reference
> - enable trigger all
> - validate
> Then I get no error, I was expecting an error.
AFAIK, disabling a foreign key trigger is not supported; if you do it,
we give absolutely zero guarantees about the subsequent behavior of the
foreign key.
ALTER TABLE VALIDATE CONSTRAINT is not meant to fix that. It is meant
to finish up a foreign key addition started with
ALTER TABLE ... ADD FOREIGN KEY ... NOT VALID.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-03-17 23:36:24 | Re: BUG #14028: FATAL: cannot perform encoding conversion outside a transaction |
Previous Message | John R Pierce | 2016-03-17 23:26:44 | Re: Help |