[Perl] DBD::Pg for ActivePerl

The DBD::Pg from ActiveState.com don’t work, it throws an exception and crashes the Perl.http://www.postgresql.org/ftp/projects/pgFoundry/dbdpgppm/

www.postgresql.org provides their own driver for windows, install DBD-Pg-5.8.ppd with PPM. You also need two DLLs which you can find in the file “openssl.zip” in the same place.

To test the installation:

c:\> perl -e “use DBI; $dbh = DBI->connect(‘dbi:Pg:dbname=db;host=server;port=5432’, ‘user’, ‘pass’);”