Re: Finding active connections to postmaster

From: reina(at)nsi(dot)edu (Tony Reina)
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Finding active connections to postmaster
Date: 2001-10-02 17:12:45
Message-ID: f40d3195.0110020912.75518328@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> Is it possible to list active connectons? How?
>

This will give a unique list of the names of those logged on:

echo Current users logged onto database:
ps ax | grep postgres: | awk '{print $6 | "sort" } ' | uniq

This will list the user and what process is being done:

ps ax | grep postgres: | awk '{print $6 ":" $9 " on " $7}'

HTH,
-Tony

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Marc Spitzer 2001-10-02 17:14:21 Re: moving user obejcts to production
Previous Message Srinivasa Rao Chava 2001-10-02 14:12:59 moving user obejcts to production