pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedbackend connection lost
2+ messages / 2 participants
[nested] [flat]
* backend connection lost
@ 1999-07-15 20:42 Ken J. Wright <ken@ori-ind.com>
0 siblings, 1 reply; 2+ messages in thread
From: Ken J. Wright @ 1999-07-15 20:42 UTC (permalink / raw)
To: pgsql-interfaces
Redhat 5.2/6.0 PostgreSQL 6.5
With both an ODBC application & a local native libpq application, when the
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?
Ken
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [INTERFACES] backend connection lost
@ 1999-07-16 13:46 Tom Lane <tgl@sss.pgh.pa.us>
parent: Ken J. Wright <ken@ori-ind.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 1999-07-16 13:46 UTC (permalink / raw)
To: Ken J. Wright <ken@ori-ind.com>; +Cc: pgsql-interfaces
"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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-07-16 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-07-15 20:42 backend connection lost Ken J. Wright <ken@ori-ind.com>
1999-07-16 13:46 ` Tom Lane <tgl@sss.pgh.pa.us>
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