User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tips [2018-08-06 07:03]
tips [2019-02-04 17:10] (current)
ziggi
Line 14: Line 14:
 SELECT pg_terminate_backend(pg_stat_activity.pid) SELECT pg_terminate_backend(pg_stat_activity.pid)
   FROM pg_stat_activity   FROM pg_stat_activity
-  WHERE pg_stat_activity.datname = '​_DBNAME_'​ +  WHERE pg_stat_activity.datname = '​_DBNAME_';​
-  AND pid <> pg_backend_pid;+
 </​file>​ </​file>​