Re: Changing constraints to deferrable

From: Greg Stark <gsstark(at)mit(dot)edu>
To: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
Cc: Greg Stark <gsstark(at)mit(dot)edu>, pgsql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Changing constraints to deferrable
Date: 2005-03-23 17:13:33
Message-ID: 87vf7i5lqa.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


"Florian G. Pflug" <fgp(at)phlo(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-03-23 17:17:14 Re: postgresql unicode lower/upper problem
Previous Message Richard Huxton 2005-03-23 17:11:17 Re: I'm OWNER of the db but I get `permission denied` when