Zmiany pomiędzy wersją 6 and wersją 7 dla AdminGuide/DatabaseMonitoring

Pokaż
Ignoruj:
Data i czas:
04/22/14 20:20:08 (11 years temu)
Autor:
wkruk (IP: 213.227.67.33)
Komentarz:

--

Legend:

Bez zmian
Dodane
Usunięte
Zmienione
  • AdminGuide/DatabaseMonitoring

    v6 v7  
    4848 
    4949}}} 
     50 
     51Od wersji postgresql 9.2: 
     52{{{ 
     53postgres@edokumenty:~$psql 
     54 
     55SELECT (now() - pg_stat_activity.xact_start) AS age, 
     56pg_stat_activity.datname, pg_stat_activity.procpid, 
     57pg_stat_activity.usename, pg_stat_activity.waiting, 
     58pg_stat_activity.query_start, pg_stat_activity.client_addr, 
     59pg_stat_activity.client_port, pg_stat_activity.current_query 
     60FROM pg_stat_activity 
     61WHERE (pg_stat_activity.xact_start IS NOT NULL) 
     62ORDER BY pg_stat_activity.xact_start; 
     63 
     64}}}