From: reina@nsi.edu
To: pgsql-admin@postgresql.org
Subject: Re: Finding active connections to postmaster
Date: 2 Oct 2001 10:12:45 -0700
Message-ID: <f40d3195.0110020912.75518328@posting.google.com> (raw)
References: <87adzh9h79.fsf@c0re.rc23.cx>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: reina@nsi.edu
Subject: Re: Finding active connections to postmaster
In-Reply-To: <f40d3195.0110020912.75518328@posting.google.com>
References: <87adzh9h79.fsf@c0re.rc23.cx> <f40d3195.0110020912.75518328@posting.google.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox