Re: Bulk load data from one table to another

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bulk load data from one table to another
Дата
Msg-id 15823.1214316689@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bulk load data from one table to another  (Nikola <XLPizza@gmail.com>)
Список pgsql-general
Nikola <XLPizza@gmail.com> writes:
> Currently, I truncate the destination table, drop the indexes,
> execute:
> "INSERT INTO destination SELECT * FROM source_partition"
> and recreate indexes.

> This loads about 66.5 million rows into the destination table in about
> 1 hour. Recreating of indexes (4 of them) takes additional 2 hours. Is
> there a more efficient way to perform this procedure?

Do you have maintenance_work_mem set to a suitable value for building
the indexes?

            regards, tom lane

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

Предыдущее
От: Ludwig Kniprath
Дата:
Сообщение: Re: Query
Следующее
От: "Brandon Metcalf"
Дата:
Сообщение: backslashes in 8.3.3