pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Servin <cservin@cdhps.com>
To: pgsql-sql@postgresql.org
Subject: Updateing pg_trigger and pg_constraint
Date: Tue, 16 Aug 2005 15:18:26 -0500
Message-ID: <200508161518.26834.cservin@cdhps.com> (raw)

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



Message-ID: <200508161518.26834.cservin@cdhps.com>
Permalink:  ../200508161518.26834.cservin@cdhps.com/
Also on:    postgresql.org/message-id/200508161518.26834.cservin@cdhps.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: cservin@cdhps.com
  Subject: Re: Updateing pg_trigger and pg_constraint
  In-Reply-To: <200508161518.26834.cservin@cdhps.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox