Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 3B0E663358B for ; Tue, 29 Sep 2009 05:52:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 22451-10 for ; Tue, 29 Sep 2009 08:52:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mail.postgresql.org (Postfix) with ESMTP id A516D632939 for ; Tue, 29 Sep 2009 05:52:15 -0300 (ADT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MsYRS-0008RE-3S for pgsql-sql@postgresql.org; Tue, 29 Sep 2009 01:52:14 -0700 Message-ID: <25659252.post@talk.nabble.com> Date: Tue, 29 Sep 2009 01:52:14 -0700 (PDT) From: Jyoti Seth To: pgsql-sql@postgresql.org Subject: Disable Constraints in Postgresql 8.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: jyotiseth2001@gmail.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200909/133 X-Sequence-Number: 33198 I want to execute a sql file for that I need to disable constraints. In postgres version 8.3, I was executing the script by doing the following:=20 1.=09Disabling triggers by updating =E2=80=9Creltriggers=E2=80=9D field of = pg_class to 0 . 2.=09Executing sql file 3.=09Then updating =E2=80=9Creltriggers=E2=80=9D field of pg_class by =E2= =80=9Cselect count(*) from pg_trigger where pg_trigger.tgrelid=3Dpg_class.oid=E2=80=9D In postgres version 8.4, =E2=80=9Cpg_class=E2=80=9D table does not have =E2= =80=9Creltriggers=E2=80=9D field.=20 How can I disable and enable constraints in Postgres Version 8.4? --=20 View this message in context: http://www.nabble.com/Disable-Constraints-in-= Postgresql-8.4-tp25659252p25659252.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com.