Re: How to stop a query
От
Scott Marlowe
Тема
Re: How to stop a query
Дата
Msg-id
CAOR=d=1ayP05Nk0XraDR9FDXbmJj3s-L72W_HjZwjQtqc1TMDA@mail.gmail.com
Ответ на
Re: How to stop a query (younus)
Список
Дерево обсуждения
How to stop a query A B <gentosaker@gmail.com>
Re: How to stop a query Pavel Stehule <pavel.stehule@gmail.com>
Re: How to stop a query younus <younus.essahli@gmail.com>
Re: How to stop a query Atri Sharma <atri.jiit@gmail.com>
Re: How to stop a query younus <younus.essahli@gmail.com>
Re: How to stop a query "Martin French" <Martin.French@romaxtech.com>
autovaccum task got cancelled Gary Fu <gfu@sigmaspace.com>
Re: autovaccum task got cancelled bricklen <bricklen@gmail.com>
Re: autovaccum task got cancelled Sergey Konoplev <gray.ru@gmail.com>
Re: autovaccum task got cancelled Kevin Grittner <kgrittn@ymail.com>
Re: autovaccum task got cancelled Gary Fu <gfu@sigmaspace.com>
Re: How to stop a query Scott Marlowe <scott.marlowe@gmail.com>
Re: How to stop a query Younus <younus.essahli@gmail.com>
Re: How to stop a query Guillaume Lelarge <guillaume@lelarge.info>
On Thu, Jul 19, 2012 at 3:17 AM, younus wrote: > Hi, > > First : > ps -ef | grep postgres > and kill -9 (PID of your query) NEVER kill -9 a postgres process unless you've exhausted all other possibilities, as it forces a restart of all the other backends as well. A plain kill (no -9) is usually all you need, and it doesn't cause all the other backends to restart and flush all shared memory. > Sec : > select procpid, datname, usename, client_addr, current_query from > pg_stat_activity where current_query!=''; > > and > > SELECT pg_cancel_backend(procpid); MUCH better way of doing things.
В списке pgsql-general по дате отправления