out of memory for query result

From: ttsai(at)pobox(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: out of memory for query result
Date: 2005-04-29 15:47:36
Message-ID: 20050429154736.GA22194@sleepy.wojomedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a Postgis table with about 2 million polyline records. The most
number of points I have in the geometry field is about 500. I have a
simple DBD::Pg Perl program that does a select for most of these records
and do some processing with them before writing them to a file.
Unfortunately, I seem to keep getting this error:

DBD::Pg::st execute failed: out of memory for query result
DBD::Pg::st fetchrow_array failed: no statement executing

This program works fine with less than a million records for sure,
my next largest table. I believe the program is failing at the first
execute after prepare on this table.

Any ideas on how I can do this?

Thanks,

Tim

Responses

Browse pgsql-general by date

  From Date Subject
Next Message James Robinson 2005-04-29 15:49:40 Composite types as columns used in production?
Previous Message Sebastian Böck 2005-04-29 15:35:04 Re: Problem with GIST-index and timestamps