pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A.M. <agentm@themactionfaction.com>
To: pgsql-general@postgresql.org
Subject: Re: help with error message from perl Pg
Date: Tue, 20 Jun 2006 10:43:32 -0400 (EDT)
Message-ID: <55472.216.41.12.254.1150814612.squirrel@webmail.webopticon.org> (raw)
In-Reply-To: <44980423.7080109@3times25.net>
References: <4497F919.7050203@3times25.net>
	<20060620135945.GB25678@svana.org>
	<44980423.7080109@3times25.net>

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




view thread (9+ messages)  latest in thread

Message-ID: <55472.216.41.12.254.1150814612.squirrel@webmail.webopticon.org>
Permalink:  ../55472.216.41.12.254.1150814612.squirrel@webmail.webopticon.org/
Also on:    postgresql.org/message-id/55472.216.41.12.254.1150814612.squirrel@webmail.webopticon.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: agentm@themactionfaction.com, pgsql-general@postgresql.org
  Subject: Re: help with error message from perl Pg
  In-Reply-To: <55472.216.41.12.254.1150814612.squirrel@webmail.webopticon.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox