Re: [GENERAL]COPY still running

Поиск
Список
Период
Сортировка
От Dirk Lutzebaeck
Тема Re: [GENERAL]COPY still running
Дата
Msg-id 14478.56400.116298.140723@ampato.aeccom.com
обсуждение исходный текст
Ответ на [GENERAL]COPY still running  (Arnaud FLORENT <aflorent@iris-tech.fr>)
Список pgsql-general
Arnaud FLORENT writes:
 > Hello i start yesterday afternoon a COPY command into a table.
 > the file is 15 Mb
 > i've set triggers before and after insert on the table
 > the before trigger just perform data check.
 > the after trigger update a 10 000 rows linked table.
 >
 > the COPY command runs all the night ad has not yet finished...........
 >
 > what is the problem????
 >

You probably have indexes defined on this table. You should drop all
the indexes before the copy and create them after the copy if the
number of rows in the copy commands exceeds the number of the current
rows in the table.

I have dropped the indexes while copy'ing which seems to be no
problem. Just create them after the copy is finished. Ymmv...

Dirk

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

Предыдущее
От: Alex Guryanow
Дата:
Сообщение: pqReadData() error
Следующее
От: Jose Soares
Дата:
Сообщение: Re: [GENERAL] Can || be used in ORDER BY?