Re: Connections to DB - Mailing list pgsql-general

From Tony Caduto
Subject Re: Connections to DB
Date
Msg-id 4362359D.9060001@amsoftwaredesign.com
Whole thread Raw
In response to Re: Connections to DB  ("Jim C. Nasby" <jnasby@pervasive.com>)
List pgsql-general
Jim C. Nasby wrote:

>SELECT * FROM pg_stat_activity;
>
>Note that if you turn on stats_command_string you'll also be able to see
>what each connection is doing if you're connected as a superuser.
>
>
>
>
Just as a little FYI, on 8.1  pg_stat_activity  will show the IP address
and port as well, but only on 8.1.

Tony

pgsql-general by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: Learning server programming
Next
From: "Troy"
Date:
Subject: Re: Why database is corrupted after re-booting