Re: "Suspending" indexes and constraint updates

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: "Suspending" indexes and constraint updates
Дата
Msg-id 20071204105741.GA15272@svana.org
обсуждение исходный текст
Ответ на "Suspending" indexes and constraint updates  (Reg Me Please <regmeplease@gmail.com>)
Список 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

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: "x asasaxax"
Дата:
Сообщение: Re: Transaction problem
Следующее
От: Reg Me Please
Дата:
Сообщение: Re: "Suspending" indexes and constraint updates