pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: GURON Rawender <Rawender_GURON@rta.nsw.gov.au>
Cc: pgsql-admin@postgresql.org
Subject: Re: User session information catalog views
Date: Mon, 25 Sep 2006 21:14:57 -0600
Message-ID: <20060926031457.GA75229@winnie.fuhr.org> (raw)
In-Reply-To: <B46993C748ACD6438DDCD6BA16AA65951273F3@centx302.corp.rta.nsw.gov.au>
References: <B46993C748ACD6438DDCD6BA16AA65951273F3@centx302.corp.rta.nsw.gov.au>

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



view thread (3+ messages)

Message-ID: <20060926031457.GA75229@winnie.fuhr.org>
Permalink:  ../20060926031457.GA75229@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20060926031457.GA75229@winnie.fuhr.org

 · 

reply

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: mike@fuhr.org, Rawender_GURON@rta.nsw.gov.au
  Subject: Re: User session information catalog views
  In-Reply-To: <20060926031457.GA75229@winnie.fuhr.org>
  References: <B46993C748ACD6438DDCD6BA16AA65951273F3@centx302.corp.rta.nsw.gov.au> <20060926031457.GA75229@winnie.fuhr.org>

* 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