Re: [GENERAL] Out of memry with large result set

2008-07-15 Thread Scott Marlowe
On Mon, Jul 14, 2008 at 11:53 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 w

Re: [GENERAL] Out of memry with large result set

2008-07-15 Thread [EMAIL PROTECTED]
> 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. Olivier -- Sent via pgsql-general mailing li

Re: [GENERAL] Out of memry with large result set

2008-07-14 Thread Klint Gore
[EMAIL PROTECTED] wrote: I am doing a query via psql on a huge database, and I want to have its output piped to other unix processes. As the result set is very big, I've got: "out of memory for query result". How can I manage that, without playing with cursors, as I do not want to change the sql

[GENERAL] Out of memry with large result set

2008-07-14 Thread [EMAIL PROTECTED]
Hello, I am doing a query via psql on a huge database, and I want to have its output piped to other unix processes. As the result set is very big, I've got: "out of memory for query result". How can I manage that, without playing with cursors, as I do not want to change the sql query ? Under mysq