Re: Add LSN along with offset to error messages reported for WAL file read/write/validate header failures
Ian Lawrence Barwick <barwick@gmail.com>
From: Ian Lawrence Barwick <barwick@gmail.com>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Magnus Hagander <magnus@hagander.net>,
Michael Paquier <michael@paquier.xyz>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>, orlovmg@gmail.com,
alvherre@alvh.no-ip.org, nathandbossart@gmail.com, pgsql-hackers@lists.postgresql.org
Date: 2022-12-21T00:06:15Z
Lists: pgsql-hackers
2022年12月20日(火) 21:35 Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>: > > On Tue, Dec 20, 2022 at 1:27 PM Magnus Hagander <magnus@hagander.net> wrote: > > > > On Tue, Dec 20, 2022 at 5:40 AM Michael Paquier <michael@paquier.xyz> wrote: > >> > >> On Tue, Dec 20, 2022 at 09:01:02AM +0900, Michael Paquier wrote: > >> > Yeah, my mind was considering as well yesterday the addition of a note > >> > in the docs about something among these lines, so fine by me. > >> > >> And applied that, after tweaking a few tiny things on a last lookup > >> with a catversion bump. Note that the example has been moved at the > >> bottom of the table for these functions, which is more consistent with > >> the surroundings. > >> > > > > Hi! > > > > Caught this thread late. To me, pg_dissect_walfile_name() is a really strange name for a function. Grepping our I code I see the term dissect s used somewhere inside the regex code and exactly zero instances elsewhere. Which is why I definitely didn't recognize the term... Late to the party too, but I did wonder about the name when I saw it. > > Wouldn't something like pg_split_walfile_name() be a lot more consistent with the rest of our names? > > Hm. FWIW, here's the patch. Hmm, "pg_split_walfile_name()" sounds like it would return three 8 character strings. Maybe something like "pg_walfile_name_elements()" ? Regards Ian Barwick
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