Re: Connections to DB

From: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Connections to DB
Date: 2005-10-28 14:28:45
Message-ID: 4362359D.9060001@amsoftwaredesign.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2005-10-28 14:30:50 Re: Learning server programming
Previous Message CG 2005-10-28 14:24:12 Re: Function written in C, hangs on one machine and not another...