X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F002B529C4 for ; Tue, 16 Aug 2005 17:18:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 89721-10 for ; Tue, 16 Aug 2005 20:18:28 +0000 (GMT) Received: from mail.cdhps.com (cservin.dsl.visi.com [209.98.143.247]) by svr1.postgresql.org (Postfix) with ESMTP id E0F685299F for ; Tue, 16 Aug 2005 17:18:26 -0300 (ADT) Received: from lt-cservin.cdhps.com (lt-cservin.cdhps.com [192.168.6.100]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.cdhps.com (Postfix) with ESMTP id 053A03A3AC for ; Tue, 16 Aug 2005 15:18:26 -0500 (CDT) From: Craig Servin Organization: CMS To: pgsql-sql@postgresql.org Subject: Updateing pg_trigger and pg_constraint Date: Tue, 16 Aug 2005 15:18:26 -0500 User-Agent: KMail/1.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508161518.26834.cservin@cdhps.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/162 X-Sequence-Number: 22390 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