Re: constraint deferred but fails? - Mailing list pgsql-admin

From Nagy László Zsolt
Subject Re: constraint deferred but fails?
Date
Msg-id 11b894e2-b357-d30a-b23a-b8389be466c2@shopzeus.com
Whole thread Raw
In response to Re: constraint deferred but fails?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: constraint deferred but fails?  ("David G. Johnston" <david.g.johnston@gmail.com>)
List 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@shopzeus.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, and is
believed to be clean.

pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: constraint deferred but fails?
Next
From: Ron
Date:
Subject: Re: constraint deferred but fails?