Re: FW: query problem "server sent binary data ... without

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: jonesbl(at)WellsFargo(dot)COM, pgsql-sql(at)postgresql(dot)org
Subject: Re: FW: query problem "server sent binary data ... without
Date: 2002-09-27 03:15:33
Message-ID: 20425.1033096533@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> writes:
> On Thu, 26 Sep 2002 jonesbl(at)WellsFargo(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2002-09-27 03:19:43 Re: Case Sensitive "WHERE" Clauses?
Previous Message Josh Berkus 2002-09-27 01:20:08 Re: Passing array to PL/SQL and looping