Re: Killing long-running queries

Поиск
Список
Период
Сортировка
От Devrim GUNDUZ
Тема Re: Killing long-running queries
Дата
Msg-id 1146614476.2471.28.camel@laptop.gunduz.org
обсуждение исходный текст
Ответ на Killing long-running queries  (Dan Harris <fbsd@drivefaster.net>)
Ответы Re: Killing long-running queries
Список pgsql-performance
Hi,

On Tue, 2006-05-02 at 17:19 -0600, Dan Harris wrote:
> Is there some way I can just kill a query and not risk breaking
> everything else when I do it?

Use pg_stat_activity view to find the pid of the process (pidproc
column) and send the signal to that process. I think you are now killing
postmaster, which is wrong.

Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/



В списке pgsql-performance по дате отправления:

Предыдущее
От: Dan Harris
Дата:
Сообщение: Re: Killing long-running queries
Следующее
От: David Wheeler
Дата:
Сообщение: Re: PL/pgSQL Loop Vs. Batch Update