Re: Suitable Driver ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Balaji Venkatesan" <balaji(dot)venkatesan(at)megasoft(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Suitable Driver ?
Date: 2001-10-11 16:24:42
Message-ID: 10403.1002817482@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Balaji Venkatesan" <balaji(dot)venkatesan(at)megasoft(dot)com> writes:
> I have installed latest DBI from www.cpan.org
> Now i need to install DBD For PGSQL .Is
> this the driver i have to work on for pgsql ?.

If you want to use DBI then you should get the DBD::Pg driver from
CPAN. (Yes, it is on CPAN, even though their index page about DBD
modules didn't list it last time I looked.)

> I need to exactly know the difference between
> use Pg ; and use DBI ; Need to which one is

Pg is a older stand-alone driver; it's not DBI-compatible,
and it's got nothing to do with DBD::Pg.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-10-11 16:30:47 Re: pg_result -list
Previous Message Bill Studenmund 2001-10-11 16:17:45 How do I get the current time in seconds in the unix epoch?