Commit 71cb84e
committed
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.com1 parent 8692f66 commit 71cb84e
2 files changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1226 | 1226 | | |
1227 | 1227 | | |
1228 | 1228 | | |
1229 | | - | |
| 1229 | + | |
1230 | 1230 | | |
1231 | 1231 | | |
| 1232 | + | |
1232 | 1233 | | |
1233 | 1234 | | |
1234 | 1235 | | |
| |||
1240 | 1241 | | |
1241 | 1242 | | |
1242 | 1243 | | |
1243 | | - | |
| 1244 | + | |
1244 | 1245 | | |
1245 | 1246 | | |
| 1247 | + | |
1246 | 1248 | | |
1247 | 1249 | | |
1248 | 1250 | | |
| |||
1281 | 1283 | | |
1282 | 1284 | | |
1283 | 1285 | | |
1284 | | - | |
| 1286 | + | |
1285 | 1287 | | |
1286 | 1288 | | |
| 1289 | + | |
1287 | 1290 | | |
1288 | 1291 | | |
1289 | 1292 | | |
| |||
1300 | 1303 | | |
1301 | 1304 | | |
1302 | 1305 | | |
1303 | | - | |
| 1306 | + | |
1304 | 1307 | | |
1305 | 1308 | | |
| 1309 | + | |
1306 | 1310 | | |
1307 | 1311 | | |
1308 | 1312 | | |
| |||
1325 | 1329 | | |
1326 | 1330 | | |
1327 | 1331 | | |
1328 | | - | |
| 1332 | + | |
1329 | 1333 | | |
1330 | 1334 | | |
1331 | 1335 | | |
| 1336 | + | |
1332 | 1337 | | |
1333 | 1338 | | |
1334 | 1339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3075 | 3075 | | |
3076 | 3076 | | |
3077 | 3077 | | |
3078 | | - | |
| 3078 | + | |
3079 | 3079 | | |
3080 | 3080 | | |
| 3081 | + | |
3081 | 3082 | | |
3082 | 3083 | | |
3083 | 3084 | | |
| |||
3280 | 3281 | | |
3281 | 3282 | | |
3282 | 3283 | | |
3283 | | - | |
3284 | | - | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
3285 | 3287 | | |
3286 | 3288 | | |
3287 | 3289 | | |
3288 | 3290 | | |
3289 | | - | |
3290 | | - | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
3291 | 3294 | | |
3292 | 3295 | | |
3293 | 3296 | | |
| |||
0 commit comments