forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit18724af
committed
Remove unnecessary smgrimmedsync() when creating unlogged table.
This became safe after commit4b4798e. The smgrcreate() call willnow register the segment for syncing at the next checkpoint, so wedon't need to sync it here. If a checkpoint happens before thecreation is WAL-logged, the records will be replayed when startingrecovery from the checkpoint. If a checkpoint happens after the WALlogging, the checkpoint will fsync() it.In the passing, clarify a comment in smgrDoPendingSyncs().Discussion:https://www.postgresql.org/message-id/6e5bbc08-cdfc-b2b3-9e23-1a914b9850a9%40iki.fiReviewed-by: Robert Haas1 parentb0ec61c commit18724af
2 files changed
+4
-8
lines changedLines changed: 3 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
606 | 606 |
| |
607 | 607 |
| |
608 | 608 |
| |
609 |
| - | |
610 |
| - | |
611 |
| - | |
612 |
| - | |
613 |
| - | |
614 |
| - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
615 | 612 |
| |
616 | 613 |
| |
617 | 614 |
| |
| |||
620 | 617 |
| |
621 | 618 |
| |
622 | 619 |
| |
623 |
| - | |
624 | 620 |
| |
625 | 621 |
| |
626 | 622 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
764 | 764 |
| |
765 | 765 |
| |
766 | 766 |
| |
767 |
| - | |
| 767 | + | |
768 | 768 |
| |
769 | 769 |
| |
770 | 770 |
| |
|
0 commit comments
Comments
(0)