pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix incorrect LSNs in WAL decoding error messages 6+ messages / 1 participants [nested] [flat]
* pgsql: Fix incorrect LSNs in WAL decoding error messages @ 2026-11-03 01:53 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-03 01:53 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect LSNs in WAL decoding error messages Commit 3f1ce97346 introduced a circular WAL decoding buffer, allowing records to be decoded before they are consumed. However, decoding error messages continued to report the location of the last record consumed instead of the record that failed decoding. With recovery prefetching, the reported location could be many records behind the failing record, making WAL problems harder to diagnose. Fix this by reporting the location of the record being decoded. Errors now identify the failing record even with recovery prefetching, making it easier to investigate malformed WAL during recovery or with tools such as pg_waldump and pg_walinspect. Backpatch to v15, where the WAL decoding buffer was introduced. Author: Rahul Yadav <rahul@rhyadav.dev> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/P2qIkq4--F-9@rhyadav.dev Backpatch-through: 15 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/01b3d24c41629c577ca172f3077ec7bfc2ca9bf3 Modified Files -------------- src/backend/access/transam/xlogreader.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix incorrect LSNs in WAL decoding error messages @ 2026-11-03 01:53 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-03 01:53 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect LSNs in WAL decoding error messages Commit 3f1ce97346 introduced a circular WAL decoding buffer, allowing records to be decoded before they are consumed. However, decoding error messages continued to report the location of the last record consumed instead of the record that failed decoding. With recovery prefetching, the reported location could be many records behind the failing record, making WAL problems harder to diagnose. Fix this by reporting the location of the record being decoded. Errors now identify the failing record even with recovery prefetching, making it easier to investigate malformed WAL during recovery or with tools such as pg_waldump and pg_walinspect. Backpatch to v15, where the WAL decoding buffer was introduced. Author: Rahul Yadav <rahul@rhyadav.dev> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/P2qIkq4--F-9@rhyadav.dev Backpatch-through: 15 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/472da35ac0e2ecf33419a7b6874fa5ba909a23d4 Modified Files -------------- src/backend/access/transam/xlogreader.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix incorrect LSNs in WAL decoding error messages @ 2026-11-03 01:53 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-03 01:53 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect LSNs in WAL decoding error messages Commit 3f1ce97346 introduced a circular WAL decoding buffer, allowing records to be decoded before they are consumed. However, decoding error messages continued to report the location of the last record consumed instead of the record that failed decoding. With recovery prefetching, the reported location could be many records behind the failing record, making WAL problems harder to diagnose. Fix this by reporting the location of the record being decoded. Errors now identify the failing record even with recovery prefetching, making it easier to investigate malformed WAL during recovery or with tools such as pg_waldump and pg_walinspect. Backpatch to v15, where the WAL decoding buffer was introduced. Author: Rahul Yadav <rahul@rhyadav.dev> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/P2qIkq4--F-9@rhyadav.dev Backpatch-through: 15 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/092da6511b8ae74eb6895fad99399e33ea959d1c Modified Files -------------- src/backend/access/transam/xlogreader.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix incorrect LSNs in WAL decoding error messages @ 2026-11-03 01:54 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-03 01:54 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect LSNs in WAL decoding error messages Commit 3f1ce97346 introduced a circular WAL decoding buffer, allowing records to be decoded before they are consumed. However, decoding error messages continued to report the location of the last record consumed instead of the record that failed decoding. With recovery prefetching, the reported location could be many records behind the failing record, making WAL problems harder to diagnose. Fix this by reporting the location of the record being decoded. Errors now identify the failing record even with recovery prefetching, making it easier to investigate malformed WAL during recovery or with tools such as pg_waldump and pg_walinspect. Backpatch to v15, where the WAL decoding buffer was introduced. Author: Rahul Yadav <rahul@rhyadav.dev> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/P2qIkq4--F-9@rhyadav.dev Backpatch-through: 15 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5f472ab564d153a047eb3f7d3edf2c8388899ee9 Modified Files -------------- src/backend/access/transam/xlogreader.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix incorrect LSNs in WAL decoding error messages @ 2026-11-03 01:54 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-03 01:54 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect LSNs in WAL decoding error messages Commit 3f1ce97346 introduced a circular WAL decoding buffer, allowing records to be decoded before they are consumed. However, decoding error messages continued to report the location of the last record consumed instead of the record that failed decoding. With recovery prefetching, the reported location could be many records behind the failing record, making WAL problems harder to diagnose. Fix this by reporting the location of the record being decoded. Errors now identify the failing record even with recovery prefetching, making it easier to investigate malformed WAL during recovery or with tools such as pg_waldump and pg_walinspect. Backpatch to v15, where the WAL decoding buffer was introduced. Author: Rahul Yadav <rahul@rhyadav.dev> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/P2qIkq4--F-9@rhyadav.dev Backpatch-through: 15 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bcb9d90519a80d62b0759f0ffddd31d1415a231d Modified Files -------------- src/backend/access/transam/xlogreader.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix incorrect LSNs in WAL decoding error messages @ 2026-11-03 01:54 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-03 01:54 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect LSNs in WAL decoding error messages Commit 3f1ce97346 introduced a circular WAL decoding buffer, allowing records to be decoded before they are consumed. However, decoding error messages continued to report the location of the last record consumed instead of the record that failed decoding. With recovery prefetching, the reported location could be many records behind the failing record, making WAL problems harder to diagnose. Fix this by reporting the location of the record being decoded. Errors now identify the failing record even with recovery prefetching, making it easier to investigate malformed WAL during recovery or with tools such as pg_waldump and pg_walinspect. Backpatch to v15, where the WAL decoding buffer was introduced. Author: Rahul Yadav <rahul@rhyadav.dev> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/P2qIkq4--F-9@rhyadav.dev Backpatch-through: 15 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3ec98353523b98c47a0b901ea43b25e7fe55eb17 Modified Files -------------- src/backend/access/transam/xlogreader.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2026-11-03 01:54 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-03 01:53 pgsql: Fix incorrect LSNs in WAL decoding error messages Fujii Masao <fujii@postgresql.org> 2026-11-03 01:53 pgsql: Fix incorrect LSNs in WAL decoding error messages Fujii Masao <fujii@postgresql.org> 2026-11-03 01:53 pgsql: Fix incorrect LSNs in WAL decoding error messages Fujii Masao <fujii@postgresql.org> 2026-11-03 01:54 pgsql: Fix incorrect LSNs in WAL decoding error messages Fujii Masao <fujii@postgresql.org> 2026-11-03 01:54 pgsql: Fix incorrect LSNs in WAL decoding error messages Fujii Masao <fujii@postgresql.org> 2026-11-03 01:54 pgsql: Fix incorrect LSNs in WAL decoding error messages Fujii Masao <fujii@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox