Re: pgsql: pg_waldump: Add a --quiet option.

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: pgsql: pg_waldump: Add a --quiet option.
Дата
Msg-id d332b8f0-0c72-3cd6-6945-7a86a503662a@oss.nttdata.com
обсуждение исходный текст
Ответ на pgsql: pg_waldump: Add a --quiet option.  (Robert Haas <rhaas@postgresql.org>)
Ответы Re: pgsql: pg_waldump: Add a --quiet option.  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-committers

On 2020/04/03 10:11, Robert Haas wrote:
> pg_waldump: Add a --quiet option.
> 
> The primary motivation for this change is that it will be used by the
> upcoming patch to add backup manifests, but it also seems to have some
> potential more general use.

I'm not sure what the actual purpose of this feature yet, but ISTM that
the following change is necessary. Otherwise, "empty" stats information
is output even when --quiet is specified.

-       if (config.stats == true)
+       if (config.stats == true && !config.quiet)
                 XLogDumpDisplayStats(&config, &stats);

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION



В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: pg_waldump: Add a --quiet option.
Следующее
От: Fujii Masao
Дата:
Сообщение: pgsql: Include information on buffer usage during planning phase, in EX