Re: [GENERAL] Making a unique constraint deferrable?

Поиск
Список
Период
Сортировка
От Ivan Voras
Тема Re: [GENERAL] Making a unique constraint deferrable?
Дата
Msg-id CAF-QHFWx21fp0zAp_8Evt3NGXOt0304QvKbwJn_exvs0C-zY2A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Making a unique constraint deferrable?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: [GENERAL] Making a unique constraint deferrable?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
On 28 February 2017 at 18:03, David G. Johnston <david.g.johnston@gmail.com> wrote:
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...


Any idea what underlying technical reason prohibits marking non-fk constraints as deferrable?

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: [GENERAL] Making a unique constraint deferrable?
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [GENERAL] Making a unique constraint deferrable?