Re: Commands to browse current connections and processes - Mailing list pgsql-general

From Mark Gibson
Subject Re: Commands to browse current connections and processes
Date
Msg-id c4365539f13874dfccd5c87da00c750341640ac4@cromwell.co.uk
Whole thread Raw
In response to Commands to browse current connections and processes  (Ying Lu <ying_lu@cs.concordia.ca>)
List pgsql-general
Ying Lu wrote:
> Hello,
>
> In mysql, we use "show processlist" to see all current process. Could
> someone let me know in PostgreSQL, what commands that we can check the
> current connections and processes please?

SELECT * FROM pg_catalog.pg_stat_activity;

--
Mark Gibson <gibsonm |AT| cromwell |DOT| co |DOT| uk>
Web Developer & Database Admin
Cromwell Tools Ltd.
Leicester, England.

pgsql-general by date:

Previous
From: Mike Nolan
Date:
Subject: Re: two digit years in inserts
Next
From: Tom Lane
Date:
Subject: Re: Cache lookup failed for relation, when trying to DROP TABLE.