Re: Changing constraints to deferrable

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Changing constraints to deferrable
Дата
Msg-id 87vf7i5lqa.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Changing constraints to deferrable  ("Florian G. Pflug" <fgp@phlo.org>)
Ответы Re: Changing constraints to deferrable  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
"Florian G. Pflug" <fgp@phlo.org> writes:

> Greg Stark wrote:
> > I want all my foreign key constraints to be deferrable. They were all created
> > with the default (not deferrable).
> > Is it enough to just do   update pg_constraint set condeferrable = 't' where
> > contype = 'f';
>
> Try an additional "update pg_trigger set isdeferrable=true where pgisconstraint
> = true", and it should work..

Thanks. That works.

Consider this a plea for an ALTER TABLE ALTER CONSTRAINT command :)

--
greg

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: I'm OWNER of the db but I get `permission denied` when
Следующее
От: Tom Lane
Дата:
Сообщение: Re: postgresql unicode lower/upper problem