Re: PG Seg Faults Performing a Query - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: PG Seg Faults Performing a Query
Date
Msg-id 20070822133302.GA16592@svana.org
Whole thread Raw
In response to Re: PG Seg Faults Performing a Query  (Bill Thoen <bthoen@gisnet.com>)
Responses Re: PG Seg Faults Performing a Query  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-general
On Wed, Aug 22, 2007 at 07:09:22AM -0600, Bill Thoen wrote:
> PostgreSQL Version is 8.1.5, running on Linux (Fedora Core 6). The last few
> lines in the Serverlog are:
> LOG:  unexpected EOF on client connection
> LOG:  transaction ID wrap limit is 1073746500, limited by database
> "postgres"
> LOG:  transaction ID wrap limit is 1073746500, limited by database
> "postgres"

All indications are that your client is unable to hold the 18 million
row result and crashing with out of memory. Nothing you do in the
server or client is going to magic more memory for you, you need to
avoid getting it in the first place.

If you only want to display part of it, do a LIMIT <rows>. Or use a
cursor to page through it.

That said, it would be nice if it returned an error instead of
crashing.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Bill Thoen
Date:
Subject: Re: PG Seg Faults Performing a Query
Next
From: Alvaro Herrera
Date:
Subject: Re: PG Seg Faults Performing a Query