Re: PG 8.3 and server load - Mailing list pgsql-performance

From Guillaume Cottenceau
Subject Re: PG 8.3 and server load
Date
Msg-id 87my5vsy2l.fsf@meuh.mnc.lan
Whole thread Raw
In response to Re: PG 8.3 and server load  (Ivan Voras <ivoras@freebsd.org>)
List pgsql-performance
Ivan Voras <ivoras 'at' freebsd.org> writes:

> pgtop (http://pgfoundry.org/projects/pgtop/) might help you see what
> is your database doing.

A simpler (but most probably less powerful) method would be to
activate "stats_command_string = on" in the server configuration,
then issue that query to view the currently running queries:

SELECT procpid, datname, current_query, query_start FROM pg_stat_activity WHERE current_query <> '<IDLE>'

That may also be interesting.

--
Guillaume Cottenceau

pgsql-performance by date:

Previous
From: Ivan Voras
Date:
Subject: Re: PG 8.3 and server load
Next
From: Andy Colson
Date:
Subject: Re: PG 8.3 and server load