Re: Changing constraints to deferrable - Mailing list pgsql-general

From Greg Stark
Subject Re: Changing constraints to deferrable
Date
Msg-id 87vf7i5lqa.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Changing constraints to deferrable  ("Florian G. Pflug" <fgp@phlo.org>)
Responses Re: Changing constraints to deferrable  (Michael Fuhr <mike@fuhr.org>)
List 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 by date:

Previous
From: Richard Huxton
Date:
Subject: Re: I'm OWNER of the db but I get `permission denied` when
Next
From: Tom Lane
Date:
Subject: Re: postgresql unicode lower/upper problem