Re: Making a unique constraint deferrable?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Ivan Voras <ivoras(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Making a unique constraint deferrable?
Date: 2017-02-28 17:03:13
Message-ID: CAKFQuwbpcWp4xFU+x7y5_EX+p6uyBqBaNKpYhUd3201c-aMPzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Feb 28, 2017 at 9:50 AM, Ivan Voras <ivoras(at)gmail(dot)com> wrote:

>
> ivoras=# alter table foo alter constraint "foo_a_b_key" deferrable;
> ERROR: constraint "foo_a_b_key" of relation "foo" is not a foreign key
> constraint
>
>
​A more clear error message would be:

EROR: cannot alter non-foreign key constraint "foo_a_b_key"​ of relation
"foo"

Though I'm not sure how that meshes with the error message style guides...

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Voras 2017-02-28 17:05:13 Re: Making a unique constraint deferrable?
Previous Message Lisandro 2017-02-28 17:00:54 Re: GMT FATAL: remaining connection slots are reserved for non-replication superuser connections, but I'm using pgBouncer for connection pooling