Postgres connection error

From: Vernon Van Zandt <vernon(dot)vanzandt(at)orionnetworksolutions(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Postgres connection error
Date: 2008-03-18 21:18:26
Message-ID: 47E031A2.3020000@orionnetworksolutions.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greetings,

I keep getting the following error when attempting to establish a
connection (from Perl):

install_driver(Pg) failed: DBD::Pg object version undef does not match
bootstrap parameter 2.2.2 at /usr/lib/perl/5.8/DynaLoader.pm line 245.

Here's the body of code used to connect:
sub db_connect {
my $dbname = shift;
my $host = shift;
my $user = shift;
my $pass = shift;
my %db_attr = (
PrintError => 0,
RaiseError => 0,
);

my $dsn = "DBI:Pg:dbname=$dbname;host=$host"; my $db =
DBI->connect($dsn, $user, $pass, \%db_attr) or die "Can't connect() to
database $dbname: +$DBI::errstr";
return ($db);
}

Am I in error here, or ...? We're running Debian Linux (etch, I think...).

TIA, -Vern

Attachment Content-Type Size
vernon_vanzandt.vcf text/x-vcard 159 bytes

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dan99 2008-03-18 21:57:22 PGSQL database size question
Previous Message Erik Jones 2008-03-18 21:07:58 Re: Conditional JOINs ?