Re: pg_xlogdump --stats

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема Re: pg_xlogdump --stats
Дата
Msg-id 20140919075410.GA13477@toroid.org
обсуждение исходный текст
Ответ на Re: pg_xlogdump --stats  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Ответы Re: pg_xlogdump --stats  (Andres Freund <andres@2ndquadrant.com>)
Re: pg_xlogdump --stats  (Abhijit Menon-Sen <ams@2ndQuadrant.com>)
Список pgsql-hackers
Hi.

I've attached two patches here:

0001-Make-pg_xlogdump-record-stats-display-summary-statis.patch is my
earlier patch to pg_xlogdump, rebased to master. It introduces the new
rm_identify callback, but doesn't touch rm_desc. Other than rebasing to
master after the INT64_FORMAT changes, I haven't changed anything.

0002-Clearly-separate-rm_identify-and-rm_desc-outputs.patch then makes
the change you (Heikki) wanted to see: rm_identify returns a name, and
rm_desc can be used to obtain optional additional detail, and xlog.c
just glues the two together in a new xlog_outdesc function. rm_desc
is changed largely only to (a) remove the "prefix: ", and (b) not
append UNKNOWN for unidentified records.

(I've done a little cleaning-up in the second patch, e.g. nbtdesc.c had
a bunch of repeated cases that I've unified, which seems a pretty nice
readability improvement overall.)

Good enough?

-- Abhijit

Вложения

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

Предыдущее
От: Dev Kumkar
Дата:
Сообщение: Re: [GENERAL] [SQL] pg_multixact issues
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pg_xlogdump --stats