Re: transaction timeout

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Dr NoName <spamacct11(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: transaction timeout
Date: 2005-07-26 16:39:08
Message-ID: 1122395947.15145.78.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2005-07-26 at 11:24, Dr NoName wrote:
> > The common view on this kind of thing is that if
> > your client is broken,
> > you need to fix it.
>
> The problem is, we can't fix the users, nor can we fix
> other software that our client has to interact with.
> There will always be occasional situations when a
> client gets stuck.

> > That said, I have seen some folks post about writing
> > a perl or shell
> > script that runs every x minutes looking for
> > connections that have been
> > idle for > a certain amount of time and kill the
> > backend associated with
> > it (sigterm, not -9...)
>
> what are the implications of killing a postmaster
> process?

A Sigterm is generally considered safe. It's -9 and its ilk that you
need to be wary of.

I think we and you both need more information about this failure. Do
you have any logging turned on that could give us a clue to what's
causing this failure?

It sounds to me more like one of the user apps is DOSing the server with
large unconstrained joins or something similarly dangerous to do.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Frank L. Parks 2005-07-26 16:55:23 Re: transaction timeout
Previous Message Dr NoName 2005-07-26 16:24:51 Re: transaction timeout