Search Postgresql Archives

Re: psql help

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

 



The convention here is to in-line replies, or bottom-post.  Top-posting makes the archives more difficult to read.

On Thursday, July 4, 2024, Murthy Nunna <mnunna@xxxxxxxx> wrote:

pg_terminate_backend(pid) will not work as it expects only one pid at a time. 


Interesting…I wouldn’t expect the function calls to interact that way…maybe try putting the select query into a plpgsql DO command loop and then call pg_terminate_backend once per loop iteration.
 

So, the question is how to rewrite this psql so it loops through all pids one pid at a time?

I can’t tell if you really mean the psql program or are misusing the term to mean something different…the code you wrote doesn’t seem like it would execute in psql.

David J.


[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