Difference between revisions of "Pg stat activity"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
  
 
  SELECT * FROM pg_stat_activity;
 
  SELECT * FROM pg_stat_activity;
 +
 +
SELECT [[pg_terminate_backend]](__pid__) from pg_stat_activity;
  
 
== Related terms ==
 
== Related terms ==
Line 13: Line 15:
 
* <code>[[select count]]</code>
 
* <code>[[select count]]</code>
 
* <code>[[pg_cancel_backend]]</code>
 
* <code>[[pg_cancel_backend]]</code>
* <code>[[pg_terminate_backend]]</code>
 
  
 
== See also ==
 
== See also ==

Revision as of 14:37, 31 October 2022

select count(*) from pg_stat_activity where query like 'autovacuum:%';
count
-------
     0
(1 row)
SELECT * FROM pg_stat_activity;
SELECT pg_terminate_backend(__pid__) from pg_stat_activity;

Related terms

See also

Advertising: