Re: Monitoring PostgreSQL on Windows 2003

From: Andreas Schmidt <a(dot)schmidt(at)mdtec(dot)de>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Monitoring PostgreSQL on Windows 2003
Date: 2010-07-09 12:26:58
Message-ID: C79CA8D604BB464FBC97C06F2631D48F089FCEE0@winxbede34.exchange.xchg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

You can use

select client_addr, current_query from pg_stat_activity;

to show all db-connection and the running queries.

Regards,

murphy

Von: pgsql-admin-owner(at)postgresql(dot)org [mailto:pgsql-admin-owner(at)postgresql(dot)org] Im Auftrag von Vítor
Gesendet: Freitag, 2. Juli 2010 14:10
An: pgsql-admin(at)postgresql(dot)org
Betreff: [ADMIN] Monitoring PostgreSQL on Windows 2003

Hi! We have an application running .NET (C#) and Postgre on Windows 2003 with almost 1500 schemas which only 350 schemas are active daily (one schema, one customer). Lately, we've noticed that our server is getting slow. We also noticed loads of writes from postgresql even when less customers are using our software.

My question is: What are the options to better monitor postgre on Windows? How can I see all the running sql commands on the server?

Thanks a lot.

Vitor

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Henry, Frank 2010-07-09 13:31:18 Large files in main/base
Previous Message Thomas Kellerer 2010-07-09 11:51:03 High Availability: Hot Standby vs. Warm Standby