pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Galbavy <peter.galbavy@knowtion.net>
To: pgsql-novice@postgresql.org
To: pgsql-admin@postgresql.org
To: Devinder K Rajput <Devinder.Rajput@ipaper.com>
Subject: Re: pg or DBI
Date: Sat, 26 Oct 2002 12:26:58 +0100
Message-ID: <008b01c27ce2$996436d0$10bc10ac@cblan.mblox.com> (raw)
References: <OFC2F61792.14C76447-ON86256C5C.005D837E@ipaper.com>

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

I have never used Pg but I had a quick look and appears to be the way to go
if you are going to be using PostgreSQL only. DBI gives you two benefits
which are related; a) You can build software that will work with different
database backends with only minimal changes (if you follow the portability
guidelines) and b) you can work with multiple different database backends in
the same code at the same time.

The later is extremely powerful when you 'inherit' a job that may involve
ODBC, Oracle, PostgreSQL etc. Cough.

Give both a quick try, proof of concept them, and decide.

Peter




view thread (6+ messages)

Message-ID: <008b01c27ce2$996436d0$10bc10ac@cblan.mblox.com>
Permalink:  ../008b01c27ce2$996436d0$10bc10ac@cblan.mblox.com/
Also on:    postgresql.org/message-id/008b01c27ce2$996436d0$10bc10ac@cblan.mblox.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: peter.galbavy@knowtion.net, pgsql-novice@postgresql.org, Devinder.Rajput@ipaper.com
  Subject: Re: pg or DBI
  In-Reply-To: <008b01c27ce2$996436d0$10bc10ac@cblan.mblox.com>
  References: <OFC2F61792.14C76447-ON86256C5C.005D837E@ipaper.com> <008b01c27ce2$996436d0$10bc10ac@cblan.mblox.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