Answers for "psql quit session"

SQL
0

kill session postgres

SELECT pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE pg_stat_activity.datname = 'TARGET_DB' -- ← change this to your DB
  AND pid <> pg_backend_pid();
Posted by: Guest on June-15-2021
0

exit psql

q Code language: SQL (Structured Query Language) (sql)
Posted by: Guest on September-07-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language