| От | Jeff Davis |
|---|---|
| Тема | Re: dumping 8M bit fields |
| Дата | |
| Msg-id | 1158944469.7578.30.camel@dogma.v10.wvs обсуждение |
| Ответ на | dumping 8M bit fields (Rajarshi Guha <rguha@indiana.edu>) |
| Список | pgsql-general |
On Thu, 2006-09-21 at 20:14 -0400, Rajarshi Guha wrote:
> Hi, I have a table with 8M rows and one of the fields is a bit (1024
> bits) field. I am trying to dump the bit field for 8M rows to a file:
>
> psql -U cicc3 -A -F " " -t -o pubchem.fp -c "select cid,gfp from
> pubchem_compound;
>
> However I get
>
> out of memory for query result
>
psql is trying to load all of the data into RAM before outputting any of
it. More specifically, it's trying to load all of the output
representations of all the data into RAM before outputting it.
For 1024 bits, the output representation will be 1k. For 8M rows that's
a lot of RAM needed.
It would be better to use something like COPY or a cursor.
Regards,
Jeff Davis
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера