Re: [GENERAL] "Suspending" indexes and constraint updates

2007-12-04 Thread Reg Me Please
Il Tuesday 04 December 2007 11:50:21 Peter Eisentraut ha scritto: > Am Dienstag, 4. Dezember 2007 schrieb Reg Me Please: > > 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 disable foreign-

Re: [GENERAL] "Suspending" indexes and constraint updates

2007-12-04 Thread Martijn van Oosterhout
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

Re: [GENERAL] "Suspending" indexes and constraint updates

2007-12-04 Thread Peter Eisentraut
Am Dienstag, 4. Dezember 2007 schrieb Reg Me Please: > 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 disable foreign-key constraints (see ALTER TABLE ... DISABLE TRIGGER; not quite obvious, b