Re: DBD::Pg vs Pg.pm - Mailing list pgsql-general

From Doug McNaught
Subject Re: DBD::Pg vs Pg.pm
Date
Msg-id m3zo5oddsi.fsf@belphigor.mcnaught.org
Whole thread Raw
In response to DBD::Pg vs Pg.pm  ("Culley Harrelson" <Culley_Harrelson@pgn.com>)
List pgsql-general
"Culley Harrelson" <Culley_Harrelson@pgn.com> writes:

> Are there any significance performance differences between DBD::Pg and going
> directly to Pg.pm.  I wasn't even aware that there was a difference till I
> recently...  The interface difference between the two are drastic.

I wouldn't imagine that there's much of a difference.  The main
advantage of the DBD module is that it fits into the DBI framework
which uses a common interface for many different databases.  So if you
had a Perl script using a proprietary database through DBI, you could
convert it fairly easily to use Postgres (depending on how much
non-standard SQL and server-side stuff you were doing).

DBI is the "recommended" way to use databases from Perl but Pg.pm
works fine AFIAK.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

pgsql-general by date:

Previous
From: "Culley Harrelson"
Date:
Subject: DBD::Pg vs Pg.pm
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Sourceforge on Oracle?