Re: BUG #4004: out of memory

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4004: out of memory
Дата
Msg-id 29799.1204395578@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #4004: out of memory  ("Manos Tsagias" <tsagias@gmail.com>)
Ответы Re: BUG #4004: out of memory  ("Manos Tsagias" <tsagias@gmail.com>)
Список pgsql-bugs
"Manos Tsagias" <tsagias@gmail.com> writes:
>  I used COPY to import a 2GB CSV file into a table. After almost 2 hours I
> got:
> ERROR: out of memory

Looks like you're running out of memory for pending AFTER trigger
events.  What triggers or foreign keys have you got on that table?

The usual recommendation for bulk loading into a table with a foreign
key is to drop the FK constraint, bulk load, re-create the FK
constraint.  This will be significantly faster than allowing the FK
to be checked incrementally.  Yeah, it'd be nice if that were
automated for you ...

            regards, tom lane

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

Предыдущее
От: "Manos Tsagias"
Дата:
Сообщение: BUG #4004: out of memory
Следующее
От: Euler Taveira de Oliveira
Дата:
Сообщение: Re: ecpg produces code that won't compile