At 22:57 2000-05-29 -0700, Joe Brenner wrote:
>"Anthony E. Greene" <[EMAIL PROTECTED]> wrote: 
>> I'm a perl user, so I favor perl and PostgreSQL. Red Hat ships with the
>> Pg.pm module which makes it easy to connect to PostgreSQL databases with
>> perl. Perl has so many modules that it's easy to add features to any
project
>> you're working on.
>> 
>> PHP has many advocates and is supposed to be very fast when used as an
>> Apache module.
>
>I'm a fan of perl and postgreSQL myself, but I thought I'd
>point out that the Pg.pm module is regarded as the
>old-fashioned way of doing things.  The recommended method
>these days is to use the DBI/DBD interface (the theory being
>that if you want to switch database software later, it
>should be fairly easy to just change the "DBD" (database
>driver), and re-use the code written to work with the "DBI"
>-- i.e. the database interface).

I thought of switching until I found out that a feature I needed was
supported in Pg.pm but not in the then-current PostgreSQL DBD. This may
have changed in the last year or so.

I understand the flexibility issue, but when I first started two years ago,
the practical advantages of DBD/DBI were minimal. There simply weren't that
many databases for Linux that would do what I needed to do with the
resources I had available. Things have changed enough since then to warrant
re-evaluation. Luckily, most of my scripts use a common library of
functions that I built to access PostgreSQL quickly and easily. I could
rewrite this library to use DBI/DBD and the scripts should work with a
minimum of trouble.


 Tony
 --
 Anthony E. Greene <[EMAIL PROTECTED]>
 Homepage and PGP Key: <http://www.pobox.com/~agreene/>
 If it's too good to be true, it's probably Linux


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to