Re: [SQL] Monitor what command is executing at the backend

2007-03-21 Thread George Pavlov
> How will I enable command string to see the commands? in your postgresql.conf set stats_command_string = true read http://www.postgresql.org/docs/8.2/interactive/monitoring-stats.html for details ---(end of broadcast)--- TIP 3: Have you checked

Re: [SQL] Monitor what command is executing at the backend

2007-03-21 Thread Karthikeyan Sundaram
George, How will I enable command string to see the commands? Regards skarthi From: "George Pavlov" <[EMAIL PROTECTED]> To: "Karthikeyan Sundaram" <[EMAIL PROTECTED]>,, Subject: Re: [SQL] Monitor what command is executing at the backend Date: Wed, 21 Mar 20

Re: [SQL] Monitor what command is executing at the backend

2007-03-21 Thread George Pavlov
>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.)

[SQL] Monitor what command is executing at the backend

2007-03-21 Thread Karthikeyan Sundaram
Hi everybody, 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. How can I find it? Regards skarthi _ Get a FREE Web site, company