Re: Stats collector performance improvement - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Stats collector performance improvement
Date
Msg-id 87wtha1x87.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Stats collector performance improvement  (Hannu Krosing <hannu@skype.net>)
Responses Re: Stats collector performance improvement  (Hannu Krosing <hannu@skype.net>)
List pgsql-hackers
Hannu Krosing <hannu@skype.net> writes:

> Interestingly I use pg_stat_activity view to watch for stuck backends,
> "stuck" in the sense that they have not noticed when client want away
> and are now waitin the TCP timeout to happen. I query for backends which
> have been in "<IDLE>" state for longer than XX seconds. I guess that at
> least some kind of indication for this should be available.

You mean like the tcp_keepalives_idle option?

http://www.postgresql.org/docs/8.1/interactive/runtime-config-connection.html#GUC-TCP-KEEPALIVES-IDLE

-- 
greg



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: plperl header fix and rationalisation
Next
From: Andrew Dunstan
Date:
Subject: Re: plperl vs LC_COLLATE (was Re: Possible savepoint bug)