postgresql/src/bin/pg_xlogdump
Andres Freund d3ca4b4b45 Fix record length computation in pg_waldump/xlogdump.
The current method of computing the record length (excluding the
lenght of full-page images) has been wrong since the WAL format has
been revamped in 2c03216d83.  Only the
main record's length was counted, but that can be significantly too
little if there's data associated with further blocks.

Fix by computing the record length as total_lenght - fpi_length.

Reported-By: Chen Huajun
Bug: #14687
Reviewed-By: Heikki Linnakangas
Discussion: https://postgr.es/m/20170603165939.1436.58887@wrigleys.postgresql.org
Backpatch: 9.5-
2017-06-05 16:10:07 -07:00
..
.gitignore Generic Messages for Logical Decoding 2016-04-06 10:05:41 +01:00
compat.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Sort $(wildcard) output where needed for reproducible build output. 2016-01-05 15:47:05 -05:00
pg_xlogdump.c Fix record length computation in pg_waldump/xlogdump. 2017-06-05 16:10:07 -07:00
rmgrdesc.c Generic Messages for Logical Decoding 2016-04-06 10:05:41 +01:00
rmgrdesc.h Move pg_xlogdump from contrib/ to src/bin/ 2015-04-21 19:03:49 -04:00