VACUUM VERBOSE output to STDERR

From: Francis GUDIN <fgudin(at)cri74(dot)org>
To: Postgresql-general <pgsql-general(at)postgresql(dot)org>
Subject: VACUUM VERBOSE output to STDERR
Date: 2006-08-11 13:49:56
Message-ID: 20060811154956.5b04ddb3@pc07.cri.cur-archamps.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I'm trying to solve a little issue: I wish to redirect my cron
jobs'output to log files. STDOUT redirection is done inside the crontab,
but VACUUM still yields its messages[1] through, onto STDERR, I guess.
I wouldn't like to '2>&1' also: I wish I could keep STDERR (what if an
error condition must be reported ?).
Is there a way to do so ?

Thanks in advance,

BR,
Francis

[1]e.g.:
<snip>
NOTICE: --Relation pg_type--
NOTICE: Pages 3: Changed 0, Empty 0; Tup 145: Vac 0, Keep 0, UnUsed 2.
Total CPU 0.00s/0.00u sec elapsed 0.07 sec.
NOTICE: Analyzing pg_type
NOTICE: --Relation pg_attribute--
NOTICE: Pages 12: Changed 0, Empty 0; Tup 827: Vac 0, Keep 0, UnUsed
32. Total CPU 0.00s/0.00u sec elapsed 0.00 sec.
NOTICE: Analyzing pg_attribute
</snip>

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-08-11 14:12:11 Re: database file encryption
Previous Message Nikolay Samokhvalov 2006-08-11 13:13:08 Re: Fwd: Strange behaviour of RULE (selecting last inserted ID of 'sequenced' column)