From: | Abhijit Menon-Sen <ams(at)2ndQuadrant(dot)com> |
---|---|
To: | Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> |
Cc: | Andres Freund <andres(at)2ndquadrant(dot)com>, Dilip kumar <dilip(dot)kumar(at)huawei(dot)com>, pgsql-hackers(at)postgresql(dot)org, furuyao(at)pm(dot)nttdata(dot)co(dot)jp |
Subject: | Re: pg_xlogdump --stats |
Date: | 2014-09-19 07:54:11 |
Message-ID: | 20140919075410.GA13477@toroid.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 | Content-Type | Size |
---|---|---|
0001-Make-pg_xlogdump-record-stats-display-summary-statis.patch | text/x-diff | 39.7 KB |
0002-Clearly-separate-rm_identify-and-rm_desc-outputs.patch | text/x-diff | 33.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2014-09-19 08:44:48 | Re: pg_xlogdump --stats |
Previous Message | Dev Kumkar | 2014-09-19 07:53:42 | Re: [GENERAL] pg_multixact issues |