Difference between revisions of "Pg cancel backend"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
<code>[[kill -9]]</code> in PostgreSQL:
 
<code>[[kill -9]]</code> in PostgreSQL:
 
  SELECT [[pg_terminate_backend]](__pid__);
 
  SELECT [[pg_terminate_backend]](__pid__);
 +
 +
SELECT [[pg_terminate_backend]](__pid__) from [[pg_stat_activity]];
  
 
== Related ==
 
== Related ==

Revision as of 14:37, 31 October 2022

Advertising: