Updateing pg_trigger and pg_constraint

From: Craig Servin <cservin(at)cromagnon(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Updateing pg_trigger and pg_constraint
Date: 2005-08-17 18:00:33
Message-ID: 200508161521.23802.cservin@cromagnon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I am trying to make some foreign keys deferrable and initially deferred.
These foreign key constraints already exist so I was going to change them by
updating pg_trigger and pg_constraint.

However the changes do not seem to take affect. Is there something I need to
do to get PostgreSQL to recognize that I have tweaked it's tables?

This is the query that I used:

begin work;
update pg_constraint set condeferrable = true, condeferred = true where
contype ='f';
update pg_trigger set tgdeferrable = true, tginitdeferred = true where
tgconstrname in ( select conname from pg_constraint where contype = 'f' );
commit

any help would be appreciated,

Craig

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message D Kavan 2005-08-17 18:15:42 Re: vacuumdb -a -f
Previous Message D Kavan 2005-08-17 17:41:47 Re: vacuumdb -a -f