forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit292698f
committed
amcheck: Skip unlogged relations in Hot Standby.
Have verify_heapam.c treat unlogged relations as if they were simplyempty when in Hot Standby mode. This brings it in line withverify_nbtree.c, which has handled unlogged relations in the same waysince bugfix commit6754fe6. This was an oversight in commit866e24d, which extended contrib/amcheck to check heap relations.In passing, lower the verbosity used when reporting that a relation hasbeen skipped like this, from NOTICE to DEBUG1. This is appropriatebecause the skipping behavior is only an implementation detail, neededto work around the fact that unlogged tables don't have smgr-levelstorage for their main fork when in Hot Standby mode.Affected unlogged relations should be considered "trivially verified",not skipped over. They are verified in the same sense that a totallyempty relation can be verified. This behavior seems least surprisingoverall, since unlogged relations on a replica will initially be emptyif and when the replica is promoted and Hot Standby ends.Author: Mark Dilger <mark.dilger@enterprisedb.com>Reviewed-By: Peter Geoghegan <pg@bowt.ie>Discussion:https://postgr.es/m/CAH2-Wzk_pukOFY7JmdiFLsrz+Pd3V8OwgC1TH2Vd5BH5ZgK4bA@mail.gmail.comBackpatch: 14-, where heapam verification was introduced.1 parent4a235ef commit292698f
2 files changed
+19
-2
lines changedLines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
323 | 323 |
| |
324 | 324 |
| |
325 | 325 |
| |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
326 | 342 |
| |
327 | 343 |
| |
328 | 344 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
372 | 372 |
| |
373 | 373 |
| |
374 | 374 |
| |
375 |
| - | |
| 375 | + | |
| 376 | + | |
376 | 377 |
| |
377 | 378 |
| |
378 | 379 |
| |
| |||
383 | 384 |
| |
384 | 385 |
| |
385 | 386 |
| |
386 |
| - | |
| 387 | + | |
387 | 388 |
| |
388 | 389 |
| |
389 | 390 |
| |
|
0 commit comments
Comments
(0)