From: Tom Lane <tgl@sss.pgh.pa.us>
To: denis@startsiden.no
Cc: pgsql-admin@postgresql.org
Subject: Re: Behaviour patterns on pgsql (7.1.3)
Date: Wed, 30 Oct 2002 14:09:32 -0500
Message-ID: <670.1036004972@sss.pgh.pa.us> (raw)
In-Reply-To: <200210301245.29698.denis@startsiden.no>
References: <200210301245.29698.denis@startsiden.no>
Denis Braekhus <denis@startsiden.no> writes:
> Every now and then postgresql gets "too busy" and these patterns emerge :
> - some connections are just idling and not being reaped (presumably either the
> browser/client or the apache webserver timed out the request)
> - these connections stack up to a point where the other "live" queries are
> handled so inefficiently that pgsql enters a "bad downwards spiral".
> (Meaning it cannot serve enough requests fast enough due to high load. The
> number of connections increases, giving again more load, and so on ... )
This strikes me as a fault on the client side, not in Postgres --- to
wit, poor connection management. It is not Postgres' job to kill idle
client connections.
But having said that, I do not think that idle connections per se would
cause any performance degradation on the server side. Perhaps they also
have open transactions that are holding locks that other queries need?
That again is really a client-side bug...
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, denis@startsiden.no
Subject: Re: Behaviour patterns on pgsql (7.1.3)
In-Reply-To: <670.1036004972@sss.pgh.pa.us>
References: <200210301245.29698.denis@startsiden.no> <670.1036004972@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