Yes and no, depends on what you mean by batch file and which version of PSQL you are using.
With recent versions (PSQL 2000i and later), you can use DTO/DTI to kill connections. You'd have to write a program to do that.
If you are using PSQL Windows Server engine, you can potentially stop the services on the server using the NET STOP command.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.