Received: from s1.servlets.net (s1.servlets.net [209.221.135.4]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6VJsPf98619 for ; Tue, 31 Jul 2001 15:54:25 -0400 (EDT) (envelope-from tauren@servlets.net) Received: from yowza2 (dsl-208-161-103-15.easystreet.com [208.161.103.15]) by s1.servlets.net (8.9.3/8.9.3) with SMTP id MAA15295 for ; Tue, 31 Jul 2001 12:20:49 -0700 From: "Tauren Mills" To: Subject: Finding number of current connections Date: Tue, 31 Jul 2001 12:24:38 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-Archive-Number: 200107/172 X-Sequence-Number: 1931 I need to find a way to determine how many concurrent connections are being made to the database server at any given time. I'm coming from administering a MySQL database and am familiar with the following command: mysqladmin -uroot -p processlist This lists something like this: +-----+------+-----------+----+---------+------+------------------+ | Id | User | Host | db | Command | Time | Info | +-----+------+-----------+----+---------+------+------------------+ | 307 | root | localhost | | Sleep | 0 | | | 308 | root | localhost | | Sleep | 0 | | | 309 | root | localhost | | Query | 0 | show processlist | +-----+------+-----------+----+---------+------+------------------+ User's on the system can also get a listing of only their own process list and not see anyone else's processes by simply using their own username and password. I've looked through the FAQ and manual, but have not been able to find an answer to this. Is there some pgsql command that will provide this information. I need both a Full Listing from an administrative viewpoint and a Per User listing. If there is not a tool to do this, how difficult would it be to build a tool to obtain this information? Or is there simply no way to extract this information from pgsql? Thanks! Tauren