Re: Add LSN along with offset to error messages reported for WAL file read/write/validate header failures
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: alvherre@alvh.no-ip.org, pgsql-hackers@lists.postgresql.org
Date: 2022-09-29T14:13:28Z
Lists: pgsql-hackers
Attachments
- v1-0001-Add-LSN-along-with-offset-to-error-messages-repor.patch (application/x-patch) patch v1-0001
On Tue, Sep 27, 2022 at 8:31 AM Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote: > > If all error-emitting site knows the LSN, we don't need the context > message. But *I* would like that the additional message looks like > "while reading record at LSN %X/%X" or slightly shorter version of > it. Because the targetRecPtr is the beginning of the current reading > record, not the LSN for the segment and offset. It may point to past > segments. I think we could just say "LSN %X/%X, offset %u", because the overall context whether it's being read or written is implicit with the other part of the message. Please see the attached v1 patch. -- Bharath Rupireddy PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
Commits
-
Rename pg_dissect_walfile_name() to pg_split_walfile_name()
- 13e0d7a60385 16.0 landed
-
Add pg_dissect_walfile_name()
- cca186348929 16.0 landed
-
Add LSN location in some error messages related to WAL pages
- 71cb84ec69a3 16.0 landed