Re: pg or DBI - Mailing list pgsql-novice

From Jason Earl
Subject Re: pg or DBI
Date
Msg-id 87d6pzy4u4.fsf@npa01zz001.simplot.com
Whole thread Raw
In response to Re: pg or DBI  ("Williams, Travis L, NPONS" <tlw@att.com>)
List pgsql-novice
Actually there are two PostgreSQL Perl interfaces the DBI based one
and Pg.  It has been a while since I have used Perl (and it has been
even longer since I used the Pg interface), but I can tell you that
most people use the DBI version.  The two interfaces are very similar,
but the Pg interface is PostgreSQL specific.  In other words, if you
want to migrate to another database in the future then you should use
DBI.  DBI is also likely to be more familiar to Perl hackers that have
worked with another database.

Jason

"Williams, Travis L, NPONS" <tlw@att.com> writes:

> Unless I am mistaken (which actually happens quite often) DBI is the
> base modue that perl uses.. the extension of that DBI::Pg (which is
> called in the script) is postgres specific.  That is what I am using and
> I am new to postgres but have been working with perl for 3-4 years and I
> have found it very easy to use.
>
> Travis
>
> -----Original Message-----
> From: Devinder K Rajput [mailto:Devinder.Rajput@ipaper.com]
> Sent: Thursday, October 24, 2002 12:05 PM
> To: pgsql-novice@postgresql.org; pgsql-admin@postgresql.org
> Subject: [NOVICE] pg or DBI
>
>
> Hi all,
>
> I have used pg to connect to postgres.  However, I have seen a lot of
> people use DBI.  Are there any advantages/disadvantages in using one or
> the
> other for connecting to postgres via perl.  Also, which one is more
> widely
> used?  Thanks for your input.
>
> Devinder Rajput
> Stores Division Corporate Offices
> Chicago, IL
> (773) 442-6474
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

pgsql-novice by date:

Previous
From: "Williams, Travis L, NPONS"
Date:
Subject: Re: pg or DBI
Next
From: Tom Ansley
Date:
Subject: test