Problem with large tables

Started by Hector Mirandaabout 25 years ago2 messagesgeneral
Jump to latest
#1Hector Miranda
hamg1@hotmail.com

Hello!

I'm working with Posgresql 7.0.3 on Red Hat linux 6.2. When I make the
following query "select * from mytable" (2000000 rows), I get the message:
"Backend sent D message whitout prior T" or
"Backend sent B message whitout prior T"

What is the problem?

Plese help me

Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Hector Miranda (#1)
Re: Problem with large tables

"Hector Miranda" <hamg1@hotmail.com> writes:

I'm working with Posgresql 7.0.3 on Red Hat linux 6.2. When I make the
following query "select * from mytable" (2000000 rows),

You're running out of application memory for the query result. (libpq
doesn't recover from that too gracefully, unfortunately.) Consider
using a cursor to fetch the data in more manageable chunks.

regards, tom lane