forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7d80e93
committed
Fix data loss on crash after sorted GiST index build.
If a checkpoint happens during the index build, and the system crashesafter the checkpoint and the index build have finished, the data writtento the index before the checkpoint started could be lost. The checkpointwon't have fsync'd it, and it won't be replayed at crash recovery either.Fix by calling smgrimmedsync() after the index build, just like in B-treeindex build.Backpatch to v14 where the sorted GiST index build was introduced.Reported-by: Melanie PlagemanDiscussion:https://www.postgresql.org/message-id/CAAKRu_ZJJynimxKj5xYBSziL62-iEtPE+fx-B=JzR=jUtP92mw@mail.gmail.com1 parentdd7c059 commit7d80e93
1 file changed
+15
-0
lines changedLines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
461 | 461 |
| |
462 | 462 |
| |
463 | 463 |
| |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
464 | 479 |
| |
465 | 480 |
| |
466 | 481 |
| |
|
0 commit comments
Comments
(0)