Re: FW: query problem "server sent binary data ... without - Mailing list pgsql-sql

From Tom Lane
Subject Re: FW: query problem "server sent binary data ... without
Date
Msg-id 20425.1033096533@sss.pgh.pa.us
Whole thread Raw
In response to Re: FW: query problem "server sent binary data ... without  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-sql
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> On Thu, 26 Sep 2002 jonesbl@WellsFargo.COM wrote:
>> the query runs for 10 minutes or so, then outputs:

> How much data is that sending?  The client library is going to try to
> buffer the entire result set.

And, in fact, this is the typical behavior when it runs out of memory
for the result set :-( ... it loses track of the fact that it was
receiving a result set at all, and starts spitting out complaints
that it's not in the right state as it receives subsequent rows.
(That should be fixed someday, but no one's got round to it.)

Consider using a cursor so you can FETCH a reasonable number of rows
at a time.
        regards, tom lane


pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Passing array to PL/SQL and looping
Next
From: Tom Lane
Date:
Subject: Re: Case Sensitive "WHERE" Clauses?