Re: Release connections in MODPERL - Mailing list pgsql-novice

From Brett W. McCoy
Subject Re: Release connections in MODPERL
Date
Msg-id Pine.LNX.4.30.0101102028180.19850-100000@chapelperilous.net
Whole thread Raw
In response to Release connections in MODPERL  ("D. Duccini" <duccini@backpack.com>)
Responses Re: Release connections in MODPERL
Re: Release connections in MODPERL
List pgsql-novice
On Wed, 10 Jan 2001, D. Duccini wrote:

> normally in PERL it shuts it down when the perl goes away, but in mod
> perl, it doesn't go away

Yes, mod_perl keeps your code in memory, and you can't be sloppy like you
can be with plain old CGI, so you need to explicitly close your database
conenctions (in DBI, I think it's the disconnect() method).

Note also, if you are using Apache::DBI, it does some cool things like
connection pooling and stuff, specifically for use with mod_perl.

-- Brett
                                     http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
I know how to do SPECIAL EFFECTS!!


pgsql-novice by date:

Previous
From: "D. Duccini"
Date:
Subject: Release connections in MODPERL
Next
From: Neil Conway
Date:
Subject: Re: Release connections in MODPERL