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

From Chris Mair
Subject Re: Query Failed, out of memory
Date
Msg-id 1160066105.2501.43.camel@ultra.home.lan
Whole thread Raw
In response to Re: Query Failed, out of memory  ("Mark Woodward" <pgsql@mohawksoft.com>)
Responses Re: Query Failed, out of memory  ("Mark Woodward" <pgsql@mohawksoft.com>)
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

Bye,
Chris.




pgsql-hackers by date:

Previous
From: "Mark Woodward"
Date:
Subject: Re: Query Failed, out of memory
Next
From: Andrew Dunstan
Date:
Subject: Re: Query Failed, out of memory