forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6c46e8a
committed
Fix data loss on crash after sorted GiST index build.
If a checkpoint happens during sorted GiST index build, and the systemcrashes after the checkpoint and after the index build has finished,the data written to the index before the checkpoint started could belost. The checkpoint won't fsync it, and it won't be replayed at crashrecovery either. Fix by calling smgrimmedsync() after the index build,just like in B-tree index 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 parente77216f commit6c46e8a
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
467 | 467 |
| |
468 | 468 |
| |
469 | 469 |
| |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
470 | 482 |
| |
471 | 483 |
| |
472 | 484 |
| |
|
0 commit comments
Comments
(0)