Re: postgresql perl connectivity

From: jseymour(at)linxnet(dot)com (Jim Seymour)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: postgresql perl connectivity
Date: 2004-06-28 13:35:03
Message-ID: 20040628133503.75DC4430E@jimsun.linxnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> wrote:
>
> On Sun, Jun 27, 2004 at 07:05:13PM -0600, Jay wrote:
>
> > Perhaps the DBD::pg perl module hasn't been fully installed,
> > or perhaps the capitalisation of 'pg' isn't right.
> > Available drivers: ExampleP, Pg, Proxy, Sponge, mysql.
> > at psqldb.pl line 10
>
> So, did you try using the Pg driver rather than pg ? It seems in this
> case capitalisation matters ...

Indeed it does. The module is DBD::Pg, *not* DBD::pg.

use DBI:
$dbh = DBI->connect("dbi:Pg:dbname=$dbName", $dbUser, $dbPass, [...]);

Jim

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-06-28 13:48:54 Re: Performance problem on RH7.1
Previous Message Reid Thompson 2004-06-28 13:07:34 Re: Is this a "Stupid Question" ?