Re: Pooling Connections with libpq - Mailing list pgsql-general

From Alfred Perlstein
Subject Re: Pooling Connections with libpq
Date
Msg-id 20010222155712.J29126@fw.wintelcom.net
Whole thread Raw
In response to Re: Pooling Connections with libpq  (Shaw Terwilliger <sterwill@sourcegear.com>)
List pgsql-general
* Shaw Terwilliger <sterwill@sourcegear.com> [010222 15:49] wrote:
> Alfred Perlstein wrote:
> > As a general safety precaution I would close a connection after a
> > timeout or N uses.
>
> My application is running on the same host as PostgreSQL, so connection
> timeouts should be rare (I guess this would only happen if a backend died).
> Re-opening the connection after N uses sounds like a reasonable precaution
> though.

I meant a user defined timeout, ie, a connection can only be recycled
100, 200 or 500 times (your choice) but can't be kept open for longer
than 5 minutes.

This is just for paranioa such that _if_ (there isn't as far as i
know) there's an issue with a backend leaking memory, you don't
get nailed by it.

> (Hopefully my PGP signatures are correct this time.)

PGP isn't really needed when having a general discussion .:)

--
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]

pgsql-general by date:

Previous
From: Shaw Terwilliger
Date:
Subject: Re: Pooling Connections with libpq
Next
From: Tatsuo Ishii
Date:
Subject: Re: Chinese patch for Pgaccess