Re: Out of memry with large result set

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "olivier(dot)scalbert(at)algosyn(dot)com" <olivier(dot)scalbert(at)algosyn(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Out of memry with large result set
Date: 2008-07-16 00:46:51
Message-ID: dcc563d10807151746g7fcc5381p59287292e676cca9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jul 14, 2008 at 11:53 PM, olivier(dot)scalbert(at)algosyn(dot)com
<olivier(dot)scalbert(at)algosyn(dot)com> wrote:
>
>> Try copy (query) to stdout.
>>
>> For me, psql sits at 4.9mb ram on a 3x10^16 row query.
>>
>> klint.
>>
>
> Thanks Klint.
> Can I use a 'copy to' for a query ? I thought I can only do 'copy
> table to stdout'
> I will do some tests tomorrow and keep you inform.

In 8.2.9 this works:

copy (select * from mytable) to stdout;

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Yi Zhao 2008-07-16 01:09:07 Re: how to found a variable is in a aggregation or not?
Previous Message Robert Treat 2008-07-16 00:26:02 Re: [pgsql-advocacy] Pg booth staffing at OSCON