Anzahl offener Connections ermitteln

hallo,

wie bekomme ich die anzahl der gerade offenen Connections raus?
Ich greife mit Python auf meine DB zu und wollte mal schauen wieviele offene Connecitons von Postgres behandelt werden.

Guggst Du pg_stat_activity.

Andreas