Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f92HYPn18825 for ; Tue, 2 Oct 2001 13:34:25 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f92HCke17622 for pgsql-admin@postgresql.org; Tue, 2 Oct 2001 13:12:46 -0400 (EDT) (envelope-from news) From: reina@nsi.edu (Tony Reina) X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Finding active connections to postmaster Date: 2 Oct 2001 10:12:45 -0700 Organization: http://groups.google.com/ Lines: 16 Message-ID: References: <87adzh9h79.fsf@c0re.rc23.cx> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-admin@postgresql.org X-Archive-Number: 200110/12 X-Sequence-Number: 2260 > 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