Re: constraint deferred but fails?

From: Nagy László Zsolt <gandalf(at)shopzeus(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: constraint deferred but fails?
Date: 2019-01-24 06:42:18
Message-ID: 11b894e2-b357-d30a-b23a-b8389be466c2@shopzeus.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

It is already deferrable:

ALTER TABLE doc.book ADD CONSTRAINT fk_book_display_mode_id FOREIGN KEY
(display_mode_id) REFERENCES doc.display_mode(id) DEFERRABLE

2019-01-24 07:39 keltezéssel, David G. Johnston írta:
> On Wednesday, January 23, 2019, Nagy László Zsolt
> <gandalf(at)shopzeus(dot)com <mailto:gandalf(at)shopzeus(dot)com>> wrote:
>
> master=> SET CONSTRAINTS doc.fk_book_display_mode_id DEFERRED;
>
>
> The constraint itself has to be changed to deferrable in order for it
> to be affected by the above.
>
> David J. 
>  
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron 2019-01-24 07:01:27 Re: constraint deferred but fails?
Previous Message David G. Johnston 2019-01-24 06:39:52 Re: constraint deferred but fails?