Difference between revisions of "Pg cancel backend"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
  
 
  SELECT [[pg_terminate_backend]](__pid__) from [[pg_stat_activity]];
 
  SELECT [[pg_terminate_backend]](__pid__) from [[pg_stat_activity]];
 +
 +
 +
select pg_terminate_backend(procpid) from pg_stat_activity where datname = 'your-db';
  
 
== Related ==
 
== Related ==

Revision as of 11:44, 16 December 2022

Advertising: