forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit18e0913
committed
StartupXLOG: Don't repeatedly disable/enable local xlog insertion.
All the code that runs in the startup process to write WAL recordsbefore that's allowed generally is now consecutive, so there's noreason to shut the facility to write WAL locally off and then turnit on again three times in a row.Unfortunately, this requires a slight kludge in the checkpointer,which needs to separately enable writing WAL in order to write thecheckpoint record. Because that code might run in the same processas StartupXLOG() if we are in single-user mode, we must save/restorethe state of the LocalXLogInsertAllowed flag. Hopefully, we'll beable to eliminate this wart in further refactoring, but it'snot too bad anyway.Amul Sul, with modifications by me.Discussion:http://postgr.es/m/CAAJ_b97fysj6sRSQEfOHj-y8Jfd5uPqOgO74qast89B4WfD+TA@mail.gmail.com1 parenta75dbf7 commit18e0913
1 file changed
+12
-11
lines changedLines changed: 12 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
905 | 905 |
| |
906 | 906 |
| |
907 | 907 |
| |
908 |
| - | |
| 908 | + | |
909 | 909 |
| |
910 | 910 |
| |
911 | 911 |
| |
| |||
8062 | 8062 |
| |
8063 | 8063 |
| |
8064 | 8064 |
| |
| 8065 | + | |
8065 | 8066 |
| |
8066 | 8067 |
| |
8067 | 8068 |
| |
| |||
8080 | 8081 |
| |
8081 | 8082 |
| |
8082 | 8083 |
| |
8083 |
| - | |
8084 | 8084 |
| |
8085 | 8085 |
| |
8086 | 8086 |
| |
| |||
8098 | 8098 |
| |
8099 | 8099 |
| |
8100 | 8100 |
| |
8101 |
| - | |
8102 | 8101 |
| |
8103 | 8102 |
| |
8104 | 8103 |
| |
| |||
8467 | 8466 |
| |
8468 | 8467 |
| |
8469 | 8468 |
| |
| 8469 | + | |
| 8470 | + | |
8470 | 8471 |
| |
8471 |
| - | |
| 8472 | + | |
8472 | 8473 |
| |
8473 | 8474 |
| |
8474 |
| - | |
| 8475 | + | |
| 8476 | + | |
8475 | 8477 |
| |
8476 | 8478 |
| |
8477 | 8479 |
| |
8478 | 8480 |
| |
| 8481 | + | |
| 8482 | + | |
8479 | 8483 |
| |
8480 | 8484 |
| |
8481 | 8485 |
| |
| |||
9020 | 9024 |
| |
9021 | 9025 |
| |
9022 | 9026 |
| |
| 9027 | + | |
9023 | 9028 |
| |
9024 | 9029 |
| |
9025 | 9030 |
| |
| |||
9127 | 9132 |
| |
9128 | 9133 |
| |
9129 | 9134 |
| |
9130 |
| - | |
| 9135 | + | |
9131 | 9136 |
| |
9132 | 9137 |
| |
9133 | 9138 |
| |
| |||
9307 | 9312 |
| |
9308 | 9313 |
| |
9309 | 9314 |
| |
9310 |
| - | |
| 9315 | + | |
9311 | 9316 |
| |
9312 | 9317 |
| |
9313 | 9318 |
| |
| |||
9447 | 9452 |
| |
9448 | 9453 |
| |
9449 | 9454 |
| |
9450 |
| - | |
9451 |
| - | |
9452 | 9455 |
| |
9453 | 9456 |
| |
9454 | 9457 |
| |
| |||
9469 | 9472 |
| |
9470 | 9473 |
| |
9471 | 9474 |
| |
9472 |
| - | |
9473 |
| - | |
9474 | 9475 |
| |
9475 | 9476 |
| |
9476 | 9477 |
| |
|
0 commit comments
Comments
(0)