Wrong statistics for size of XLOG_SWITCH during pg_waldump

Edit
Title Wrong statistics for size of XLOG_SWITCH during pg_waldump
Topic Server Features
Created 2020-10-20 06:07:37
Last modified 2020-12-01 11:10:43 (2 days, 20 hours ago)
Latest email 2020-12-04 06:20:47 (1 hour, 49 minutes ago)
Status
2021-01: Needs review
2020-11: Moved to next CF
Target version
Authors movead li (movead.li)
Reviewers Become reviewer
Committer
Links
Emails
Wrong statistics for size of XLOG_SWITCH during pg_waldump.
First at 2020-10-09 05:41:25 by "movead.li at highgo.ca" <movead.li at highgo.ca>
Latest at 2020-12-04 06:20:47 by Kyotaro Horiguchi <horikyota.ntt at gmail.com>
Latest attachment (fix_waldump_size_for_wal_switch_v5.patch) at 2020-10-16 09:39:58 from "movead.li at highgo.ca" <movead.li at highgo.ca>
    Attachment (fix_waldump_size_for_wal_switch_v5.patch) at 2020-10-16 09:39:58 from "movead.li at highgo.ca" <movead.li at highgo.ca> (Patch: Yes)
    Attachment (fix_waldump_size_for_wal_switch_v4.patch) at 2020-10-16 08:21:47 from "movead.li at highgo.ca" <movead.li at highgo.ca> (Patch: Yes)
    Attachment (fix_waldump_size_for_wal_switch_v3-1.patch) at 2020-10-15 08:32:10 from Kyotaro Horiguchi <horikyota.ntt at gmail.com> (Patch: Yes)
    Attachment (fix_waldump_size_for_wal_switch_v3.patch) at 2020-10-15 04:56:02 from "movead.li at highgo.ca" <movead.li at highgo.ca> (Patch: Yes)
    Attachment (fix_pg_waldump_xact_commit_record_stats.diff) at 2020-10-15 02:44:43 from Kyotaro Horiguchi <horikyota.ntt at gmail.com> (Patch: Yes)
    Attachment (fix_waldump_size_for_wal_switch_v2.patch) at 2020-10-10 01:50:02 from "movead.li at highgo.ca" <movead.li at highgo.ca> (Patch: Yes)
    Attachment (fix_waldump_size_for_wal_switch.patch) at 2020-10-09 05:41:25 from "movead.li at highgo.ca" <movead.li at highgo.ca> (Patch: Yes)
History
When Who What
2020-12-01 11:10:43 Anastasia Lubennikova (lubennikovaav) Closed in commitfest 2020-11 with status: Moved to next CF
2020-11-30 07:39:44 Shinya Kato (kato-shinya) New status: Needs review
2020-11-30 07:39:39 Shinya Kato (kato-shinya) New status: Waiting on Author
2020-10-20 06:08:30 movead li (movead.li) Changed authors to movead li (movead.li)
2020-10-20 06:07:37 movead li (movead.li) Attached mail thread 2020100913412132258847@highgo.ca
2020-10-20 06:07:37 movead li (movead.li) Created patch record
Edit