Updateing pg_trigger and pg_constraint - Mailing list pgsql-sql

From Craig Servin
Subject Updateing pg_trigger and pg_constraint
Date
Msg-id 200508161518.26834.cservin@cdhps.com
Whole thread Raw
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Dario Bahena Tapia
Date:
Subject: Re: Parentheses in FROM clause and evaluation order.
Next
From: "Venkatesh Krishnamurthy"
Date:
Subject: Tables are not being updated Properly through Trigger