Re: [HACKERS] memory problems in copying large table to STDOUT

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] memory problems in copying large table to STDOUT
Дата
Msg-id 11327.939484474@sss.pgh.pa.us
обсуждение исходный текст
Ответ на memory problems in copying large table to STDOUT  (Martin Weinberg <weinberg@osprey.astro.umass.edu>)
Ответы Re: [HACKERS] memory problems in copying large table to STDOUT
Список pgsql-hackers
Martin Weinberg <weinberg@osprey.astro.umass.edu> writes:
> I've been struggling to copy a large table (200 million
> records, 60GB) to tape using:
>    psql -qc "copy psc to STDOUT;" Winter99 | dd of=/dev/st0 bs=32k
> After processing about 10 million records (this varies), I
> get:
>   FATAL 1:  Memory exhausted in AllocSetAlloc()

Hmm.  What is the exact declaration of the table?

The only explanation I can think of offhand is that the output
conversion function for one of the column types is leaking memory...
copy.c itself looks to be pretty careful not to.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Re: [GENERAL] Update of bitmask type
Следующее
От: Martin Weinberg
Дата:
Сообщение: Re: [HACKERS] memory problems in copying large table to STDOUT