Re: Out of memry with large result set - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Out of memry with large result set
Date
Msg-id dcc563d10807151746g7fcc5381p59287292e676cca9@mail.gmail.com
Whole thread Raw
In response to Re: Out of memry with large result set  ("olivier.scalbert@algosyn.com" <olivier.scalbert@algosyn.com>)
List pgsql-general
On Mon, Jul 14, 2008 at 11:53 PM, olivier.scalbert@algosyn.com
<olivier.scalbert@algosyn.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;

pgsql-general by date:

Previous
From: Robert Treat
Date:
Subject: Re: [pgsql-advocacy] [pdxpug] Pg booth staffing at OSCON
Next
From: Yi Zhao
Date:
Subject: Re: how to found a variable is in a aggregation or not?