Re: [GENERAL] Making a unique constraint deferrable?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [GENERAL] Making a unique constraint deferrable?
Дата
Msg-id CAKFQuwbpcWp4xFU+x7y5_EX+p6uyBqBaNKpYhUd3201c-aMPzA@mail.gmail.com
обсуждение исходный текст
Ответ на [GENERAL] Making a unique constraint deferrable?  (Ivan Voras <ivoras@gmail.com>)
Ответы Re: [GENERAL] Making a unique constraint deferrable?  (Ivan Voras <ivoras@gmail.com>)
Список pgsql-general
On Tue, Feb 28, 2017 at 9:50 AM, Ivan Voras <ivoras@gmail.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.

В списке pgsql-general по дате отправления:

Предыдущее
От: Lisandro
Дата:
Сообщение: [GENERAL] Re: GMT FATAL: remaining connection slots are reserved fornon-replication superuser connections, but I'm using pgBouncer forconnection pooling
Следующее
От: Ivan Voras
Дата:
Сообщение: Re: [GENERAL] Making a unique constraint deferrable?