Re: Add LSN along with offset to error messages reported for WAL file read/write/validate header failures
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, Nathan Bossart <nathandbossart@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2022-11-11T17:35:06Z
Lists: pgsql-hackers
Hmm, in 0002, why not return the timeline from the LSN too? It seems a
waste not to have it.
+ ereport(ERROR,
+ (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
+ errmsg("\"offset\" must not be negative or greater than or "
+ "equal to WAL segment size")));
I don't think the word offset should be in quotes; and please don't cut
the line. So I propose
errmsg("offset must not be negative or greater than or equal to the WAL segment size")));
--
Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.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