Re: Perl interface

From: Giles Lean <giles(at)nemeton(dot)com(dot)au>
To: Thomas Holmgren <thm(at)cs(dot)auc(dot)dk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Perl interface
Date: 2000-06-16 23:26:36
Message-ID: 20056.961197996@nemeton.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2000-06-17 00:18:36 Re: Error-message in other language
Previous Message Giles Lean 2000-06-16 23:25:22 Re: postmaster logs