Re: constraint deferred but fails?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Nagy László Zsolt <gandalf(at)shopzeus(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 07:08:47
Message-ID: CAKFQuwY10pL1i+z2N62Rm8wMpYvMJrNHL=igcR_O65KiCqKPsQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Please don’t top-post replies on these lists.

On Wednesday, January 23, 2019, Nagy László Zsolt <gandalf(at)shopzeus(dot)com>
wrote:

> 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
>

Ignoring the question of why you want to do things this way it seems you
need to provide a self-contained, complete, test case to get a sound
answer. Though I suspect it may have to do with an on delete clause you
haven’t shown.

David J.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Shreeyansh Dba 2019-01-24 07:08:57 Re: constraint deferred but fails?
Previous Message Ron 2019-01-24 07:01:27 Re: constraint deferred but fails?