pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nagy László Zsolt <gandalf@shopzeus.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: constraint deferred but fails?
Date: Thu, 24 Jan 2019 07:42:18 +0100
Message-ID: <11b894e2-b357-d30a-b23a-b8389be466c2@shopzeus.com> (raw)
In-Reply-To: <CAKFQuwYSELmpEHtaywi3v0Msx6UphX8ygjr0OL5OLc8vXbBZdA@mail.gmail.com>
References: <7db1a61c-1f0e-d233-0756-b7eecf2f420d@shopzeus.com>
	<CAKFQuwYSELmpEHtaywi3v0Msx6UphX8ygjr0OL5OLc8vXbBZdA@mail.gmail.com>

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 <mailto: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* <http://www.mailscanner.info/;, and is
> believed to be clean. 

view thread (6+ messages)  latest in thread

Message-ID: <11b894e2-b357-d30a-b23a-b8389be466c2@shopzeus.com>
Permalink:  ../11b894e2-b357-d30a-b23a-b8389be466c2@shopzeus.com/
Also on:    postgresql.org/message-id/11b894e2-b357-d30a-b23a-b8389be466c2@shopzeus.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: gandalf@shopzeus.com, david.g.johnston@gmail.com
  Subject: Re: constraint deferred but fails?
  In-Reply-To: <11b894e2-b357-d30a-b23a-b8389be466c2@shopzeus.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox