forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9d0bd95
committed
Add block information in error context of WAL REDO apply loop
Providing this information can be useful for example when diagnosingproblems related to recovery conflicts or for recovery issues withouthaving to go through the output generated by pg_waldump to get someinformation about the blocks a WAL record works on.The block information is printed in the same format as pg_waldump. Thisalready existed in xlog.c for debugging purposes with -DWAL_DEBUG, soadding the block information in the callback has required just a smallrefactoring.Author: Bertrand DrouvotReviewed-by: Michael Paquier, Masahiko SawadaDiscussion:https://postgr.es/m/c31e2cba-efda-762c-f4ad-5c25e5dac3d0@amazon.com1 parent4964253 commit9d0bd95
1 file changed
+15
-1
lines changedLines changed: 15 additions & 1 deletion
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
Comments
(0)