Re: \COPY command and indexes in tables

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: \COPY command and indexes in tables
Дата
Msg-id 044d427bf8a91959da6cb20394c166be734afe02.camel@cybertec.at
обсуждение исходный текст
Ответ на \COPY command and indexes in tables  (Matthias Apitz <guru@unixarea.de>)
Список pgsql-general
On Thu, 2020-11-19 at 08:38 +0100, Matthias Apitz wrote:
> We load large tables in some customer installation (some millions of rows)
> from file with:
> 
>     TRUNCATE TABLE tableName ;
>     \COPY tableName FROM 'fileName' WITH ( DELIMITER '|' )
> 
> and got to know that the loading nearly stops (without any real CPU
> consumption) in the middle. The wild guess is that we forgot to DROP the indexes on
> the tables.

If it does not consume CPU, it must be stalled somehow.

Are there any wait events in "pg_stat_activity".

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




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

Предыдущее
От: Matthias Apitz
Дата:
Сообщение: \COPY command and indexes in tables
Следующее
От: Atul Kumar
Дата:
Сообщение: maintenance_work_mem