Commit 9d0bd95
committed
Add block information in error context of WAL REDO apply loop
Providing this information can be useful for example when diagnosing
problems related to recovery conflicts or for recovery issues without
having to go through the output generated by pg_waldump to get some
information about the blocks a WAL record works on.
The block information is printed in the same format as pg_waldump. This
already existed in xlog.c for debugging purposes with -DWAL_DEBUG, so
adding the block information in the callback has required just a small
refactoring.
Author: Bertrand Drouvot
Reviewed-by: Michael Paquier, Masahiko Sawada
Discussion: https://postgr.es/m/c31e2cba-efda-762c-f4ad-5c25e5dac3d0@amazon.com1 parent 4964253 commit 9d0bd95
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| 943 | + | |
943 | 944 | | |
944 | 945 | | |
945 | 946 | | |
| |||
10258 | 10259 | | |
10259 | 10260 | | |
10260 | 10261 | | |
| 10262 | + | |
| 10263 | + | |
| 10264 | + | |
| 10265 | + | |
| 10266 | + | |
| 10267 | + | |
| 10268 | + | |
| 10269 | + | |
| 10270 | + | |
| 10271 | + | |
| 10272 | + | |
| 10273 | + | |
| 10274 | + | |
10261 | 10275 | | |
10262 | 10276 | | |
10263 | 10277 | | |
| |||
10284 | 10298 | | |
10285 | 10299 | | |
10286 | 10300 | | |
10287 | | - | |
10288 | 10301 | | |
10289 | 10302 | | |
10290 | 10303 | | |
| |||
11765 | 11778 | | |
11766 | 11779 | | |
11767 | 11780 | | |
| 11781 | + | |
11768 | 11782 | | |
11769 | 11783 | | |
11770 | 11784 | | |
| |||
0 commit comments