Re: "Suspending" indexes and constraint updates - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: "Suspending" indexes and constraint updates
Date
Msg-id 20071204105741.GA15272@svana.org
Whole thread Raw
In response to "Suspending" indexes and constraint updates  (Reg Me Please <regmeplease@gmail.com>)
List pgsql-general
On Tue, Dec 04, 2007 at 10:09:06AM +0100, Reg Me Please wrote:
> Is there a way to "suspend" the index updates and the constraint checks
> before the inserts in order to later re-enable them and do a reindex?

You can defer foreign key checks and possibly constraints, but unique
index checks can't be done. For really big loads it's not uncommon to
remove the constraints and indexes prior to te load.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
>  -- John F Kennedy

Attachment

pgsql-general by date:

Previous
From: "x asasaxax"
Date:
Subject: Re: Transaction problem
Next
From: Reg Me Please
Date:
Subject: Re: "Suspending" indexes and constraint updates