Re: Backend sent D message without prior T

From: Antonis Antoniou <a(dot)antoniou(at)albourne(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Backend sent D message without prior T
Date: 2001-02-14 17:07:18
Message-ID: 3A8ABB46.E4A8BDF5@albourne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:

> Antonis Antoniou <a(dot)antoniou(at)albourne(dot)com> writes:
> > I get the following message:
> > Backend sent D message without prior T
>
> > Does anyone knows about this message? I am expecting to retrieve
> > 2818510 records and am using PostgreSQL 7.1beta4.
>
> IIRC, this is a fairly common symptom of the frontend app running out
> of memory --- libpq loses sync with what the backend is sending, and
> it doesn't handle that very gracefully.
>
> I'd suggest using a cursor to retrieve the data in more manageable
> chunks.
>
> regards, tom lane

This is strange because the machine has 1GB of memory. Using the same
database on PostgreSQL 7.0.2 and on a machine that has 500MB of memory
the above query works fine.

Regards
Antonis

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tony Grant 2001-02-14 17:28:19 Re: Bad book review
Previous Message Vince Vielhaber 2001-02-14 16:57:47 Re: Bad book review