pg_archivecleanup outputs errors messages which are not error messages per se

Поиск
Список
Период
Сортировка
Искать

pg_archivecleanup outputs errors messages which are not error messages per se

От:
Benjamin Henrion <bh@udev.org>
Дата:
Hi,

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.

I am using the debian 9.1 package, could you reproduce that on your side?

Best,

-- 
Benjamin Henrion 
FFII Brussels - +32-484-566109 - +32-2-4148403
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."

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

От:
Simon Riggs <simon@2ndQuadrant.com>
Дата:
On Mon, Jan 9, 2012 at 9:55 AM, Benjamin Henrion  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/0000000900000017000000D=
C"
> pg_archivecleanup: removing file "/db/current/wal/0000000900000017000000D=
B"
>
> 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.

--=20
=A0Simon Riggs=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 http:/=
/www.2ndQuadrant.com/
=A0PostgreSQL Development, 24x7 Support, Training & Services
FAQ