Re: Finding active connections to postmaster - Mailing list pgsql-admin

From reina@nsi.edu (Tony Reina)
Subject Re: Finding active connections to postmaster
Date
Msg-id f40d3195.0110020912.75518328@posting.google.com
Whole thread Raw
In response to Finding active connections to postmaster  (drt@un.bewaff.net (Doobee R. Tzeck))
List 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

pgsql-admin by date:

Previous
From: Tomasz Misterka
Date:
Subject: Help with SELECT and string
Next
From: "Michael B. Babakov"
Date:
Subject: How to make 'tail -f' in PostgreSQL?