From: Murthy Kambhampaty <murthy.kambhampaty@goeci.com>
To: pgsql-admin@postgresql.org
Subject: Logging VACUUM activity in version 7.3
Date: Thu, 28 Aug 2003 12:35:38 -0400
Message-ID: <2D92FEBFD3BE1346A6C397223A8DD3FC0923C0@THOR.goeci.com> (raw)
Does version 7.3 provide a way to get VACUUM activity reports in the server
log (postmaster's stderr) without having them show up in the client's
stderr?
In 7.2, running vacuum "quiet", i.e.,
/usr/local/pgsql/bin/vacuumdb -U postgres -q -a -z
logged vacuum activity to the server log. e.g.,
"DEBUG: Pages 0: Changed 0, Empty 0; Tup 0: Vac 0, Keep 0, UnUsed 0.
Total CPU 0.00s/0.00u sec elapsed 0.00 sec."
without sending the information to psql's stderr or stdout
In 7.3, running vacuum "quiet", i.e.,
/usr/local/pgsql/bin/vacuumdb -U postgres -q -a -z
does not put VACUUM activity reports in the server log
whereas running vacuum "verbose", i.e.,
/usr/local/pgsql/bin/vacuumdb -U postgres -v -a -z
puts the vacuum activity in the logs, e.g.:
INFO: Pages 0: Changed 0, Empty 0; Tup 0: Vac 0, Keep 0, UnUsed 0.
Total CPU 0.00s/0.00u sec elapsed 0.00 sec.
but it also sends these messages to the client's stderr
I've modified postgresql.conf to include
"server_min_messages = info"
(assuming that the log prefix denotes the message level), while leaving
client_min_messages at the default, but this doesn't reproduce the version
7.2 behavior.
Help,
Murthy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: murthy.kambhampaty@goeci.com
Subject: Re: Logging VACUUM activity in version 7.3
In-Reply-To: <2D92FEBFD3BE1346A6C397223A8DD3FC0923C0@THOR.goeci.com>
References: <2D92FEBFD3BE1346A6C397223A8DD3FC0923C0@THOR.goeci.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox