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

From Abhijit Menon-Sen
Subject Re: pg_xlogdump --stats
Date
Msg-id 20140911084316.GA20687@toroid.org
Whole thread Raw
In response to Re: pg_xlogdump --stats  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Responses Re: pg_xlogdump --stats
List pgsql-hackers
At 2014-08-21 10:06:39 +0300, hlinnakangas@vmware.com wrote:
>
> Committed the patch to add INT64_MODIFIER, with minor fixes.

Thank you.

> The new rm_identify method needs to be documented. […]
> Perhaps add comments to the RmgrData struct, explaining
> all of the methods.

OK, I'll submit a patch to add these comments.

> I think the names that rm_identify returns should match those that the
> rm_desc functions print.

I had originally started off trying to keep the output in sync, but it
doesn't work very well. There are rm_desc functions that print things
like "truncate before" and "Create posting tree", and many decisions
are quite arbitrary ("freeze_page", "cleanup info", "multi-insert").

I think it's better the (grep-friendly) way it is. If anything, perhaps
rm_desc should output "${rm_identify}[: optional explanation]". That
would also make it very clear what should go in rm_identify and what
should go in rm_desc.

Thoughts?

> The corresponding rm_identify output is:
> 
> HOT_UPDATE+INIT

The +INIT is admittedly a special case, and I would have no objection to
writing that as (INIT) or something instead.

-- Abhijit



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Support for N synchronous standby servers
Next
From: Heikki Linnakangas
Date:
Subject: Re: pg_xlogdump --stats