Constraint question - Mailing list pgsql-admin

From Enzo Daddario
Subject Constraint question
Date
Msg-id 1147659556.29084.26.camel@localhost.localdomain
Whole thread Raw
Responses Re: Constraint question  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Hi All,

I am currently using Postgres 8.1.2 and am in the process
of restructuring our entire DB.

The current structure - table "X" is the central/main table in the DB
and has approx 100 tables which reference it in the form of foreign key
constaints.

I am now required the remove thousands of obsolete records from table
"X" and even though I have removed all related rows in all related
tables, the deletion of rows in table "X" is taking WAY TOO LONG. I am
assuming that this is because the deletion of each row in table "X"
requires that all the related tables(a number of them are huge) need to
be first checked.

Is there a way I can temporarily disable this checking and then
re-enable it after the rows in table "X" are deleted.

Thanks ENZO...


pgsql-admin by date:

Previous
From: Andy Shellam
Date:
Subject: Re: install postgre on windows XP, service failed to start.
Next
From: Tom Lane
Date:
Subject: Re: Constraint question