Re: get number and names of processes connected to postgresql

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: get number and names of processes connected to postgresql
Date: 2011-09-24 21:17:20
Message-ID: 4E7E48E0.705@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 09/24/11 2:07 PM, Gregg Jaskiewicz wrote:
> My apps share same databases, so no good in that. And I am very well
> aware of the new feature in 9.0 - but we're stuck in the 8.3 land for
> now.

you can still give the various apps different user accounts (roles) even
if they all have to have the same permissions (perhaps by being members
of the role that has the actual permissions). We're usually more
specific about our roles.

and, do note, the pg_stat_activity table has the process ID as well as
the client port.

netstat etc won't do you any good at all if any of the connections are
remote.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Lelarge 2011-09-24 21:21:47 Re: Mac OS X shared_buffers not same as postgresql.conf file
Previous Message Marti Raudsepp 2011-09-24 21:09:52 Re: get number and names of processes connected to postgresql