forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit47fe4d2
committed
Initialize GIN metapage correctly when replaying metapage-update WAL record.
I broke this with my WAL format refactoring patch. Before that, the metapagewas read from disk, and modified in-place regardless of the LSN. That wasalways a bit silly, as there's no need to read the old page version fromdisk disk when we're overwriting it anyway. So that was changed in 9.5, butI failed to add a GinInitPage call to initialize the page-headers correctly.Usually you wouldn't notice, because the metapage is already in the pagecache and is not zeroed.One way to reproduce this is to perform a VACUUM on an already vacuumedtable (so that the vacuum has no real work to do), immediately after acheckpoint, and then perform an immediate shutdown. After recovery, thepage headers of the metapage will be incorrectly all-zeroes.Reported by Jeff Janes1 parentf78329d commit47fe4d2
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
512 | 512 |
| |
513 | 513 |
| |
514 | 514 |
| |
| 515 | + | |
515 | 516 |
| |
516 | 517 |
| |
517 | 518 |
| |
|
0 commit comments
Comments
(0)