Re: pg_xlogdump --stats - Mailing list pgsql-hackers

From Abhijit Menon-Sen
Subject Re: pg_xlogdump --stats
Date
Msg-id 20140919075410.GA13477@toroid.org
Whole thread Raw
In response to Re: pg_xlogdump --stats  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Responses Re: pg_xlogdump --stats  (Andres Freund <andres@2ndquadrant.com>)
Re: pg_xlogdump --stats  (Abhijit Menon-Sen <ams@2ndQuadrant.com>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Dev Kumkar
Date:
Subject: Re: [GENERAL] [SQL] pg_multixact issues
Next
From: Andres Freund
Date:
Subject: Re: pg_xlogdump --stats