pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jyoti Seth <jyotiseth2001@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Disable Constraints in Postgresql 8.4
Date: Tue, 29 Sep 2009 01:52:14 -0700 (PDT)
Message-ID: <25659252.post@talk.nabble.com> (raw)


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: 
1.	Disabling triggers by updating “reltriggers” field of pg_class to 0 .
2.	Executing sql file
3.	Then updating “reltriggers” field of pg_class by “select count(*) from
pg_trigger where pg_trigger.tgrelid=pg_class.oid”

In postgres version 8.4, “pg_class” table does not have “reltriggers” field. 

How can I disable and enable constraints in Postgres Version 8.4?

-- 
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.




view thread (2+ messages)  latest in thread

Message-ID: <25659252.post@talk.nabble.com>
Permalink:  ../25659252.post@talk.nabble.com/
Also on:    postgresql.org/message-id/25659252.post@talk.nabble.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: jyotiseth2001@gmail.com
  Subject: Re: Disable Constraints in Postgresql 8.4
  In-Reply-To: <25659252.post@talk.nabble.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