Add LSN location in some error messages related to WAL pages
Michael Paquier <michael@paquier.xyz>
Add LSN location in some error messages related to WAL pages The error messages reported during any failures while reading or validating the header of a WAL currently includes only the offset of the page but not the compiled LSN referring to the page, requiring an extra step to compile it if looking at the surroundings with pg_waldump or similar. Adding this information costs a bit in translation, but also eases debugging. Author: Bharath Rupireddy Reviewed-by: Álvaro Herrera, Kyotaro Horiguchi, Maxim Orlov, Michael Paquier Discussion: https://postgr.es/m/CALj2ACWV=FCddsxcGbVOA=cvPyMr75YCFbSQT6g4KDj=gcJK4g@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlogreader.c | modified | +10 −5 |
| src/backend/access/transam/xlogrecovery.c | modified | +8 −5 |
Discussion
- Add LSN along with offset to error messages reported for WAL file read/write/validate header failures 42 messages · 2022-09-19 → 2022-12-23