Re: Query Failed, out of memory - Mailing list pgsql-hackers

From Mark Woodward
Subject Re: Query Failed, out of memory
Date
Msg-id 18128.24.91.171.78.1160067351.squirrel@mail.mohawksoft.com
Whole thread Raw
In response to Re: Query Failed, out of memory  (Chris Mair <chrisnospam@1006.org>)
List pgsql-hackers
>
>> > FWIW, there's a feature in CVS HEAD to instruct psql to try to use a
>> > cursor to break up huge query results like this.  For the moment I'd
>> > suggest using COPY instead.
>>
>>
>> That's sort of what I was afraid off. I am trying to get 100 million
>> records into a text file in a specific order.
>>
>> Sigh, I have to write a quick program to use a cursor. :-(
>
> Why don't you try the psql client from 8.2beta1 then? This way you don't
> have to write the program yourself and you're helping out with beta
> testing as well :-)
> See FETCH_COUNT in
> http://developer.postgresql.org/pgdocs/postgres/app-psql.html
>

Well, maybe next time, it only took about 10 minutes to write. It is a
simple program.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: timestamp subtraction (was Re: [SQL] formatting intervals with to_char)
Next
From: "Luke Lonergan"
Date:
Subject: Re: Query Failed, out of memory