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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: FW: query problem "server sent binary data ... without
Дата
Msg-id 20425.1033096533@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: FW: query problem "server sent binary data ... without  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список 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 по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Passing array to PL/SQL and looping
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Case Sensitive "WHERE" Clauses?