disable constrained (contd.)

From: Roman Kunert <rkunert(at)yobe(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: disable constrained (contd.)
Date: 2004-08-22 00:41:35
Message-ID: 4127EBBF.2040405@yobe.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I just wanted to know if there is an update to the topic

http://archives.postgresql.org/pgsql-sql/2003-02/msg00624.php

I am also looking for an easy way to disable foreign key constraint
check while importing data from one database to PostgreSQL. The one
suggested method (see link above) that modifies pg_catalog.pg_class is
not preferrable, as it requires super user rights, the other one that
works by dropping the foreign key, doing the inserts and then adding it
back again does not seem to work, as it results in an constraint check
error when I execute the ADD statement (it complains about the reference
to a row in another table that has not been imported yet, but will be
later during the import)

any news on this? thanks.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Kathrine S 2004-08-22 19:51:34 ERROR: Invalid regular expression: parentheses ( ) not balanced
Previous Message Sreten Milosavljevic 2004-08-20 21:17:08 problem with RULE