Hwo to set timeout for PHP persistent connections

From: Gabriele Bartolini <g(dot)bartol(at)comune(dot)prato(dot)it>
To: PostgreSQL-General <pgsql-general(at)postgresql(dot)org>
Subject: Hwo to set timeout for PHP persistent connections
Date: 2003-03-03 16:27:42
Message-ID: 1046708862.10972.8.camel@pc1119
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ciao guys,

I need to set a reasonable low value of timeout for inactive
connections, as they seem to stay up when a PHP script calls a
pg_pconnect on the database server.

As its main purpose is to serve a Web application, I'd love
connections to get close after 10-15 seconds of inactivity.

Is there a run-time configuration I can set in Postgres?

Ciao and thanks
-Gabriele
--
Gabriele Bartolini - Web Programmer
Comune di Prato - Prato - Tuscany - Italy
g(dot)bartol(at)comune(dot)prato(dot)it | http://www.comune.prato.it
> find bin/laden -name osama -exec rm {} ;

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-03-03 17:08:35 almost there on a design
Previous Message Marc G. Fournier 2003-03-03 15:56:17 Re: List Problems