pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason Earl <jason.earl@simplot.com>
To: Williams, Travis L, NPONS <tlw@att.com>
Cc: Devinder K Rajput <Devinder.Rajput@ipaper.com>
Cc: pgsql-novice@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [NOVICE] pg or DBI
Date: 24 Oct 2002 14:11:47 -0600
Message-ID: <87d6pzy4u4.fsf@npa01zz001.simplot.com> (raw)
In-Reply-To: <AB815D267EC31A4693CC24D234F8291602BA2CB7@ACCLUST02EVS1.ugd.att.com>
References: <AB815D267EC31A4693CC24D234F8291602BA2CB7@ACCLUST02EVS1.ugd.att.com>


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)



view thread (6+ messages)  latest in thread

Message-ID: <87d6pzy4u4.fsf@npa01zz001.simplot.com>
Permalink:  ../87d6pzy4u4.fsf@npa01zz001.simplot.com/
Also on:    postgresql.org/message-id/87d6pzy4u4.fsf@npa01zz001.simplot.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jason.earl@simplot.com, tlw@att.com, Devinder.Rajput@ipaper.com, pgsql-novice@postgresql.org
  Subject: Re: [NOVICE] pg or DBI
  In-Reply-To: <87d6pzy4u4.fsf@npa01zz001.simplot.com>
  References: <AB815D267EC31A4693CC24D234F8291602BA2CB7@ACCLUST02EVS1.ugd.att.com> <87d6pzy4u4.fsf@npa01zz001.simplot.com>

* 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