Re: pg_archivecleanup outputs errors messages which are not error messages per se

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Benjamin Henrion <bh(at)udev(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_archivecleanup outputs errors messages which are not error messages per se
Date: 2012-01-09 10:20:12
Message-ID: CA+U5nMJma2JFYZ8tNBaxm0X8j5_FYGXJFKJwWvXKHMqasj0aMg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, Jan 9, 2012 at 9:55 AM, Benjamin Henrion <bh(at)udev(dot)org> wrote:

> I am using pg_archivecleanup in a shell script that sends STDERR to a
> log file, and I see the foilowing:
>
> pg_archivecleanup: keep WAL file
> "/db/current/wal/0000000900000017000000DD" and later
> pg_archivecleanup: removing file "/db/current/wal/0000000900000017000000DC"
> pg_archivecleanup: removing file "/db/current/wal/0000000900000017000000DB"
>
> Should those messages considered as being "errors"?
>
> I don't think so.

This is a feature not a bug, since that allows the messages to appear
in the PG log when the utility is used as an archive_cleanup_command.

If you'd like to submit a patch to allow -s mode (silent) or similar,
we'd be happy to receive it.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Haas 2012-01-09 17:34:49 Re: user names & non-ASCII
Previous Message Benjamin Henrion 2012-01-09 09:55:41 pg_archivecleanup outputs errors messages which are not error messages per se