Search Postgresql Archives

Re: Quit currently running query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/28/23 04:53, Albert Cornelius wrote:
How can I quit a currently running query? I've issued a query and my server does not respond anymore. Is there another solution than using kill -9?

What specifically do you mean by "my server does not respond anymore"?  Because if "the server" really doesn't respond anymore, you can't even issue "kill -9".

I'd first try "select pg_cancel_backend(<pid>);".  If that doesn't work, try "select pg_terminate_backend(<pid>);", which is the Postgresql-aproved version of "kill -9".

--
Born in Arizona, moved to Babylonia.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux