Re: Perl interface - Mailing list pgsql-general

From Giles Lean
Subject Re: Perl interface
Date
Msg-id 20056.961197996@nemeton.com.au
Whole thread Raw
In response to Perl interface  (Thomas Holmgren <thm@cs.auc.dk>)
List pgsql-general
> I would like to extract data from my postgreSQL7.0 database and present
> them on a web-page. I want to use CGI scripts written in Perl. How do I
> connect to and query the DB from Perl? A reference to a tutorial or some
> sort of documentation would be highly appreciated! :))

The choices for perl/PostgresQL interfacing are DBI and DBD::Pg which
you can find on CPAN (http://www.perl.com/CPAN), and the Pg module
which you can find in src/interfaces/perl5 in the postgresql
distribution.

The Pg module is closer to libpq. The DBI interface is more portable
and has the benefit of being documented in "Programming the Perl DBI"
by Alligator Descartes and Tim Bunce.

Regards,

Giles



pgsql-general by date:

Previous
From: Giles Lean
Date:
Subject: Re: postmaster logs
Next
From: Peter Eisentraut
Date:
Subject: Re: Error-message in other language