pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeremy Buchmann <jeremy@wellsgaming.com>
To: Devinder K Rajput <Devinder.Rajput@ipaper.com>
Cc: pgsql-novice@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: pg or DBI
Date: Thu, 24 Oct 2002 10:20:50 -0700
Message-ID: <F18BBA96-E774-11D6-B00B-000502E740BA@wellsgaming.com> (raw)
In-Reply-To: <OFC2F61792.14C76447-ON86256C5C.005D837E@ipaper.com>


On Thursday, October 24, 2002, at 10:05 AM, Devinder K Rajput wrote:

> 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.

In theory, DBI is "cross-database", meaning the code you write to access
one database is the same as, or very similar to, the code you write to
access another.  That's nice because if you switch databases, you don't
have to do a huge code re-write, and you don't have to learn a different
set of function calls for each database you use.  Also, DBI is actively
maintained, and I don't know if Perl-Pg is or not.  There has been some
discussion about ditching Perl-Pg in favor of DBI, but I don't know if 
anything
became of that.

--Jeremy




view thread (6+ messages)  latest in thread

Message-ID: <F18BBA96-E774-11D6-B00B-000502E740BA@wellsgaming.com>
Permalink:  ../F18BBA96-E774-11D6-B00B-000502E740BA@wellsgaming.com/
Also on:    postgresql.org/message-id/F18BBA96-E774-11D6-B00B-000502E740BA@wellsgaming.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: jeremy@wellsgaming.com, Devinder.Rajput@ipaper.com, pgsql-novice@postgresql.org
  Subject: Re: pg or DBI
  In-Reply-To: <F18BBA96-E774-11D6-B00B-000502E740BA@wellsgaming.com>
  References: <OFC2F61792.14C76447-ON86256C5C.005D837E@ipaper.com> <F18BBA96-E774-11D6-B00B-000502E740BA@wellsgaming.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