Re: out of memory error

From: Toby Corkindale <toby(dot)corkindale(at)strategicdata(dot)com(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: out of memory error
Date: 2011-07-06 01:32:28
Message-ID: 4E13BB2C.9040702@strategicdata.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/07/11 01:12, Geoffrey Myers wrote:
> Wanted to add more specifics. Here is the actual code that generated the
> error:
>
> my $result = $conn->exec($select);
>
> if ($result->resultStatus != PGRES_TUPLES_OK)
> {
> $error = $conn->errorMessage;
> die "Error: <$error> Failed: <$select>";
> }

That looks like Perl code.
Which CPAN module are you using?

Judging by the PGRES_TUPLES_OK bit, I'm guessing it's either the
very-experimental Pg::PQ, or more likey - the ancient Pg module.

I just ask, because I don't think that module has been maintained since
the 20th Century! I mean, it's seriously out of date. It was built
against Postgresql version 6!

I believe everyone using Perl with PostgreSQL uses the DBD::Pg module
now - if you're having client errors, I really think you should look at
moving to it as well.

I hope this helps,
Toby

In response to

Browse pgsql-general by date

  From Date Subject
Next Message c k 2011-07-06 02:34:14 Re: Python UCS4 error
Previous Message Chris Travers 2011-07-06 01:23:07 Re: Finding latest record for a number of groups in an INSERT-only table