pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Servin <cservin@cromagnon.com>
To: pgsql-admin@postgresql.org
Subject: Updateing pg_trigger and pg_constraint
Date: Wed, 17 Aug 2005 13:00:33 -0500
Message-ID: <200508161521.23802.cservin@cromagnon.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



view thread (3+ messages)  latest in thread

Message-ID: <200508161521.23802.cservin@cromagnon.com>
Permalink:  ../200508161521.23802.cservin@cromagnon.com/
Also on:    postgresql.org/message-id/200508161521.23802.cservin@cromagnon.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: cservin@cromagnon.com
  Subject: Re: Updateing pg_trigger and pg_constraint
  In-Reply-To: <200508161521.23802.cservin@cromagnon.com>
  References: <200508161521.23802.cservin@cromagnon.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