From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ken J. Wright <ken@ori-ind.com>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] backend connection lost
Date: Fri, 16 Jul 1999 09:46:45 -0400
Message-ID: <9489.932132805@sss.pgh.pa.us> (raw)
In-Reply-To: <3.0.32.19990715134238.008395e0@ren.cncware.com>
"Ken J. Wright" <ken@ori-ind.com> writes:
> app is idle for a long period of time, the connection to the backend gets
> lost. Is there some kind of postmaster setting to keep alive? Other ideas?
There is not, but you could try patching the backend to set the
KEEPALIVE option on the TCP socket --- see StreamConnection() in
src/backend/libpq/pqcomm.c.
If that helps, I think it'd be reasonable to accept the patch as
an #ifdef'd chunk of code with a config.h variable to control it.
I'm a little hesitant to just drop it in unconditionally --- I don't
know whether KEEPALIVE is supported by all platforms...
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, ken@ori-ind.com
Subject: Re: [INTERFACES] backend connection lost
In-Reply-To: <9489.932132805@sss.pgh.pa.us>
* 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