Re: help with error message from perl Pg - Mailing list pgsql-general

From A.M.
Subject Re: help with error message from perl Pg
Date
Msg-id 55472.216.41.12.254.1150814612.squirrel@webmail.webopticon.org
Whole thread Raw
In response to Re: help with error message from perl Pg  (Geoffrey <esoteric@3times25.net>)
Responses Re: help with error message from perl Pg  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: help with error message from perl Pg  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
On Tue, June 20, 2006 10:20 am, Geoffrey wrote:

>
> We considered that and have verified that we are not closing it.  But,
> the question came up, should we be passing it by reference or value?  We
> are doing the following:
>
> my $conn = Pg::connectdb ("dbname=$db port=$port"); .
> .
> my $retVal = &$prog($conn, @args);
>
> Question is, should we be doing:
>
>
> my $retVal = &$prog(\$conn, @args);
>
>
> FYI, there's no expectation of changing $conn in anyway within the sub
> routines.

You are using a completely outdated interface to postgres. Looking on
CPAN, Pg.pm was last updated 04 Apr 2000. Which version of postgresql are
you using? It is likely that the old interface blows up when connecting to
a postgresql from >2000.

-M


pgsql-general by date:

Previous
From: Wes
Date:
Subject: Re: Adding foreign key constraints without integrity
Next
From: Tom Lane
Date:
Subject: Re: [INTERFACES] help with error message from perl Pg