Re: Monitor what command is executing at the backend - Mailing list pgsql-sql

From George Pavlov
Subject Re: Monitor what command is executing at the backend
Date
Msg-id 8C5B026B51B6854CBE88121DBF097A869869D1@ehost010-33.exch010.intermedia.net
Whole thread Raw
In response to Monitor what command is executing at the backend  ("Karthikeyan Sundaram" <skarthi98@hotmail.com>)
Responses Re: Monitor what command is executing at the backend  ("Karthikeyan Sundaram" <skarthi98@hotmail.com>)
List pgsql-sql
>    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.)

pgsql-sql by date:

Previous
From: "Karthikeyan Sundaram"
Date:
Subject: Monitor what command is executing at the backend
Next
From: "Karthikeyan Sundaram"
Date:
Subject: Re: Monitor what command is executing at the backend