pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chris Kratz <chris.kratz@vistashare.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Long running queries degrade performance
Date: Fri, 16 Apr 2004 17:12:52 -0400
Message-ID: <2850.1082149972@sss.pgh.pa.us> (raw)
In-Reply-To: <200404161128.00851.chris.kratz@vistashare.com>
References: <200404161128.00851.chris.kratz@vistashare.com>

Chris Kratz <chris.kratz@vistashare.com> writes:
> ... Or if worse comes to worse to actually kill long running 
> processes without taking down the whole db as we have had to do on occasion.

A quick "kill -INT" suffices to issue a query cancel, which I think is
what you want here.  You could also consider putting an upper limit on
how long things can run by means of statement_timeout.

Those are just band-aids though.  Not sure about the underlying problem.
Ordinarily I'd guess that the big-hog queries are causing trouble by
evicting everything the other queries need from cache.  But since your
database fits in RAM, that doesn't seem to hold water.

What PG version are you running?

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <2850.1082149972@sss.pgh.pa.us>
Permalink:  ../2850.1082149972@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2850.1082149972@sss.pgh.pa.us

 · 

reply

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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, chris.kratz@vistashare.com
  Subject: Re: Long running queries degrade performance
  In-Reply-To: <2850.1082149972@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