Answers for "how to stop all connections to a psql 12 database?"

SQL
0

how to stop all connections to a psql 12 database?

# Works for psql 12
select pg_terminate_backend(pid) from pg_stat_activity where datname='<db_name>';
Posted by: Guest on August-11-2021

Code answers related to "how to stop all connections to a psql 12 database?"

Code answers related to "SQL"

Browse Popular Code Answers by Language