Re: Connection pooling - Mailing list pgsql-general

From Dan Lyke
Subject Re: Connection pooling
Date
Msg-id 14960.26634.509087.845261@wynand.flutterby.com
Whole thread Raw
In response to Re: Connection pooling  (Gilles DAROLD <gilles@darold.net>)
List pgsql-general
Gilles DAROLD writes:
> With Apache/mod_perl it is very simple to enable DB connection
> persistance.
>
> in your perl script :
>
> use vars qw($dbh);
>
> $dbh ||= DBI::connect($datasrc, $dbuser, $dbpwd);

Even better, Apache::DBI will pool across Perl programs, and you don't
have to change anything in your scripts.

pgsql-general by date:

Previous
From: Guillaume Lémery
Date:
Subject: Re: Load a database into memory
Next
From: Denis Perchine
Date:
Subject: Re: Re: Load a database into memory