PROJET AUTOBLOG


Shaarli - Librement Shaarli

Site original : Shaarli - Librement Shaarli

⇐ retour index

How to see active connections and "current activity" in PostgreSQL 8.4 - Server Fault

vendredi 13 juillet 2018 à 14:29
select *
from pg_stat_activity
where datname = 'mydatabasename'

See also pg-top, which acts like top except it shows postgres activity.

    Install pg-top (in Debian, the package is called "ptop").
    Become the postgres user (e.g. sudo su postgres)
    Run pg_top


Permalink