From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Jean-Michel Chabanne <jeanmichel(dot)chabanne(at)free(dot)fr> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Error message : Server sent data ("D" message) .... |
Date: | 2002-06-27 13:51:04 |
Message-ID: | 25060.1025185864@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Jean-Michel Chabanne <jeanmichel(dot)chabanne(at)free(dot)fr> writes:
> Today I got this message :
> server sent data ("D" message) without prior row description ("T" message)
> The query was a single select on a single table (a little more than 1.5
> millions rows) :
Your client program ran out of memory to hold the select result.
libpq unfortunately is not very good about dealing with that; it loses
track of what the backend is doing, leading to lots of messages like the
above until the server finally stops sending data. Fixing this is on
the to-do list, but hasn't been very high priority, since it would only
allow a more graceful failure :-(
If you really want to read all of a big table, consider using a cursor
so you can fetch a few rows at a time.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Curt Sampson | 2002-06-27 13:59:25 | Re: What is a tuple? |
Previous Message | Jan Wieck | 2002-06-27 13:50:32 | Re: Shared Memory Sizing |