From: Dan Harris <fbsd@drivefaster.net>
To: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Killing long-running queries
Date: Tue, 02 May 2006 17:19:52 -0600
Message-ID: <4457E918.10007@drivefaster.net> (raw)
My database is used primarily in an OLAP-type environment. Sometimes my
users get a little carried away and find some way to slip past the
sanity filters in the applications and end up bogging down the server
with queries that run for hours and hours. And, of course, what users
tend to do is to keep queuing up more queries when they don't see the
first one return instantly :)
So, I have been searching for a way to kill an individual query. I read
in the mailing list archives that you could 'kill' the pid. I've tried
this a few times and more than once, it has caused the postmaster to
die(!), terminating every query that was in process, even unrelated to
that query.
Is there some way I can just kill a query and not risk breaking
everything else when I do it?
Thanks
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: fbsd@drivefaster.net
Subject: Re: Killing long-running queries
In-Reply-To: <4457E918.10007@drivefaster.net>
* 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