Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id C0B959FB29C for ; Tue, 26 Sep 2006 00:15:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 82076-08 for ; Tue, 26 Sep 2006 03:15:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id 8E3989FB28C for ; Tue, 26 Sep 2006 00:15:03 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.8/8.13.8) with ESMTP id k8Q3Ewbe081084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 25 Sep 2006 21:15:01 -0600 (MDT) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.8/8.13.8) with ESMTP id k8Q3EvFw075311; Mon, 25 Sep 2006 21:14:57 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.8/8.13.8/Submit) id k8Q3EvRl075310; Mon, 25 Sep 2006 21:14:57 -0600 (MDT) (envelope-from mfuhr) Date: Mon, 25 Sep 2006 21:14:57 -0600 From: Michael Fuhr To: GURON Rawender Cc: pgsql-admin@postgresql.org Subject: Re: User session information catalog views Message-ID: <20060926031457.GA75229@winnie.fuhr.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=SPF_PASS, UNPARSEABLE_RELAY X-Spam-Level: X-Archive-Number: 200609/284 X-Sequence-Number: 23198 On Tue, Sep 26, 2006 at 12:18:31PM +1000, GURON Rawender wrote: > I am new to PostgreSQL and have long experience of administering Oracle > database. I am looking for user sessions information in a PostgreSQL. > Basically I am after dynamic performance views equivalent to Oracle's > v$session, v$process, v$session_wait etc. Can someone guide me in right > direction because I could not find any relevant information in the > manual. Sounds like you're looking for the pg_stat_activity view. See "The Statistics Collector" in the "Monitoring Database Activity" chapter of the documentation. http://www.postgresql.org/docs/8.1/interactive/monitoring-stats.html To see command strings you'll need to enable stats_command_string in postgresql.conf. This setting is off by default in 8.1 and earlier; enabling it can have a noticeable performance impact. Performance is improved in 8.2, which will enable stats_command_string by default. -- Michael Fuhr