Re: monitoring running queries?

From: Dirk Lutzebaeck <lutzeb(at)aeccom(dot)com>
To: "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net>
Cc: Brice Ruth <brice(at)webprojkt(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: monitoring running queries?
Date: 2001-02-08 08:21:09
Message-ID: 14978.22261.788394.946570@ampato.core.aeccom.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brett W. McCoy writes:
> On Wed, 7 Feb 2001, Brice Ruth wrote:
>
> > Is there any way (besides ps) to view queries that are running on the
> > PostgreSQL server? Something that actually output the query being run
> > would be great.
>
> You can set the logging option for query to 4, I believe, and it will log
> the full query by whatever logging facility you are using (syslog,
> redirected stdout or whatever). Take a look in the admin docs for
> whatever version you are using. There's a lot fo stuff you can log.
>
> If you are logging queries, you can open up the log file with tail -f and
> monitor the log as queries are being made.

would be nice if the debug/logging level could be changed with
SIGUSR1/2 like samba.

Dirk

In response to

Browse pgsql-general by date

  From Date Subject
Next Message benoit.le-dizes@voila.fr 2001-02-08 08:43:57 installation on a QUBE 2
Previous Message Anand Raman 2001-02-08 08:11:10 Re: locks..