From: Salem Berhanu <salemb4@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: postgres and persistant connections (using Apache::DBI)
Date: Tue, 28 Mar 2006 22:26:45 +0000
Message-ID: <BAY103-F37CAE8D3D56B8CB2E1C6B1EFD30@phx.gbl> (raw)
I am trying to set up a persistent connection to a handful of postgres dbs
at startup using Apache::DBI (also using mod_perl)
Here is what I am doing but I am not sure how to check if it's working
right.
in httpd.conf I have
PerlRequire startup.pl
in startup.pl I load all the necessary perl modules and also include the
lines
use Apache::DBI;
Apache::DBI->connect_on_init( host, login, password);
This doesnt seem to make any difference. I was expecting to see database
connections when I restarted apache and that all queries would get handled
by these connections. Is this a wrong assumption? What is the expectation
and what would be a good test when setting up persistent connections to a
postgres db?
Thanks much
Salem
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: salemb4@hotmail.com
Subject: Re: postgres and persistant connections (using Apache::DBI)
In-Reply-To: <BAY103-F37CAE8D3D56B8CB2E1C6B1EFD30@phx.gbl>
References: <BAY103-F37CAE8D3D56B8CB2E1C6B1EFD30@phx.gbl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox