Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
scripts: Don't terminate current session in terminate-psql-sessions.
Vishnu KSf2ce856b8f9f
diff --git a/scripts/setup/terminate-psql-sessions b/scripts/setup/terminate-psql-sessionsindex e01a8b73ab4..c6340d270ca 100755--- a/scripts/setup/terminate-psql-sessions+++ b/scripts/setup/terminate-psql-sessions@@ -32,5 +32,6 @@ SELECT pg_terminate_backend(s.pid)WHEREs.datname IN ($tables)AND r.rolname = CURRENT_USER- AND (s.usename = r.rolname OR r.rolsuper = 't');+ AND (s.usename = r.rolname OR r.rolsuper = 't')+ AND s.pid <> pg_backend_pid();EOF