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.