Re: BUG #14687: pg_xlogdump does only count "main data" for record length and leading to incorrect statistics

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: chjischj@163.com
Cc: pgsql-bugs@postgresql.org
Date: 2017-06-05T23:12:51Z
Lists: pgsql-bugs
Hi,

On 2017-06-03 16:59:39 +0000, chjischj@163.com wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      14687
> Logged by:          Chen huajun
> Email address:      chjischj@163.com
> PostgreSQL version: 9.5.0
> Operating system:   ALL
> Description:        

Thanks for the report, I've pushed a fix to the affected releases.
It'll be included in the next set of back-branch releases.

Regards,

Andres Freund


Commits

  1. Fix record length computation in pg_waldump/xlogdump.

  2. Fix pg_xlogdump's calculation of full-page image data.

  3. Revamp the WAL record format.