Skip to content

Instantly share code, notes, and snippets.

@aaronr
Created August 29, 2012 20:38
Show Gist options
  • Save aaronr/3518589 to your computer and use it in GitHub Desktop.
Save aaronr/3518589 to your computer and use it in GitHub Desktop.
regional2_aaronr=# select * from pg_stat_activity where datname like 'erma%';
datid | datname | procpid | usesysid | usename | application_name | client_addr | client_hostname | client_port | backend_start | xact_start | query_start | waiting | current_query
----------+------------+---------+----------+----------------------+------------------+-------------+-----------------+-------------+-------------------------------+-------------------------------+-------------------------------+---------+-----------------------
10980581 | erma_gregc | 12113 | 352258 | erma_gulfofmexico | | 127.0.0.1 | | 56565 | 2012-08-29 13:30:01.955284-07 | | 2012-08-29 13:30:01.963217-07 | f | <IDLE>
10980581 | erma_gregc | 8777 | 11319998 | erma_pacific_gregc | erma_django | 127.0.0.1 | | 55597 | 2012-08-29 13:12:01.56137-07 | 2012-08-29 13:32:53.401638-07 | 2012-08-29 13:32:53.402131-07 | f | <IDLE> in transaction
10980581 | erma_gregc | 12062 | 11319998 | erma_pacific_gregc | | 127.0.0.1 | | 56561 | 2012-08-29 13:30:01.619389-07 | | 2012-08-29 13:32:01.650996-07 | f | <IDLE>
10980581 | erma_gregc | 12117 | 7493029 | erma_southwest_gregc | | 127.0.0.1 | | 56571 | 2012-08-29 13:30:01.976685-07 | | 2012-08-29 13:30:01.982486-07 | f | <IDLE>
10980581 | erma_gregc | 8718 | 18941 | erma_arctic_gregc | | 127.0.0.1 | | 54752 | 2012-08-29 13:10:02.053208-07 | | 2012-08-29 13:30:01.999213-07 | f | <IDLE>
10980581 | erma_gregc | 12119 | 10755802 | erma_caribbean_gregc | | 127.0.0.1 | | 56577 | 2012-08-29 13:30:01.989156-07 | | 2012-08-29 13:30:01.99974-07 | f | <IDLE>
10980581 | erma_gregc | 5343 | 18941 | erma_arctic_gregc | erma_django | 127.0.0.1 | | 52051 | 2012-08-29 12:40:01.950236-07 | 2012-08-29 13:32:52.537823-07 | 2012-08-29 13:32:52.538348-07 | f | <IDLE> in transaction
(7 rows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment