Recreate big table

Поиск
Список
Период
Сортировка
От Gábriel Ákos
Тема Recreate big table
Дата
Msg-id 45CCBC7B.3090004@i-logic.hu
обсуждение исходный текст
Ответы Re: Recreate big table  ("Daniel Cristian Cruz" <danielcristian@gmail.com>)
Список pgsql-performance
Hi,

We have a quite big table, which is heavily used by our online clients.
The table has several indexes, but no other relation to other tables.
We have an import process, which can fill/update this table.
The full import takes 1 hour, and this is very long.
We are thinking of doing the full import in another table and then just
"swapping" the two tables.
What will happen to our indexes? What will happen to our current
transactions (only read) ? What will the user see? :)
Should we recreate the indexes after the swap is done?

Btw is there a good practice doing this kind of work?

Thanks in advance,
Akos Gabriel

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: stats collector process high CPU utilization
Следующее
От: Benjamin Minshall
Дата:
Сообщение: Re: stats collector process high CPU utilization