pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karthikeyan Sundaram <skarthi98@hotmail.com>
To: gpavlov@mynewplace.com
To: pgsql-admin@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Re: [SQL] Monitor what command is executing at the backend
Date: Wed, 21 Mar 2007 15:16:42 -0700
Message-ID: <BAY131-F184F459B61FD363B91BA2DB0740@phx.gbl> (raw)
In-Reply-To: <8C5B026B51B6854CBE88121DBF097A869869D1@ehost010-33.exch010.intermedia.net>

George,

  How will I enable command string to see the commands?

Regards
skarthi


>From: "George Pavlov" <gpavlov@mynewplace.com>
>To: "Karthikeyan Sundaram" 
><skarthi98@hotmail.com>,<pgsql-admin@postgresql.org>,<pgsql-sql@postgresql.org>
>Subject: Re: [SQL] Monitor what command is executing at the backend
>Date: Wed, 21 Mar 2007 14:56:50 -0700
>
> >    Is there a way to see from the log files on what sql statement is
> > currently by which user?  In other words, I want to monitor
> > the DB activity.
>
>for a current snapshot you don't need the logs, try:
>
>   select * from pg_stat_activity;
>
>(command string needs to be enabled for your database.)
>
>---------------------------(end of broadcast)---------------------------
>TIP 7: You can help support the PostgreSQL project by donating at
>
>                 http://www.postgresql.org/about/donate

_________________________________________________________________
ItÂ’s tax season, make sure to follow these few simple tips 
http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMMartagline




view thread (4+ messages)  latest in thread

Message-ID: <BAY131-F184F459B61FD363B91BA2DB0740@phx.gbl>
Permalink:  ../BAY131-F184F459B61FD363B91BA2DB0740@phx.gbl/
Also on:    postgresql.org/message-id/BAY131-F184F459B61FD363B91BA2DB0740@phx.gbl

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: skarthi98@hotmail.com, gpavlov@mynewplace.com, pgsql-admin@postgresql.org
  Subject: Re: [SQL] Monitor what command is executing at the backend
  In-Reply-To: <BAY131-F184F459B61FD363B91BA2DB0740@phx.gbl>

* 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