- Notifications
You must be signed in to change notification settings - Fork5
Commit723d018
committed
Use a latch to make startup process wake up and replay immediately when
new WAL arrives via streaming replication. This reduces the latency, andalso allows us to use a longer polling interval, which is good for energyefficiency.We still need to poll to check for the appearance of a trigger file, butthe interval is now 5 seconds (instead of 100ms), like when waiting fora new WAL segment to appear in WAL archive.1 parent236b6bc commit723d018
File tree
3 files changed
+53
-8
lines changed- src
- backend
- access/transam
- replication
- include/access
3 files changed
+53
-8
lines changedLines changed: 47 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| 49 | + | |
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
| |||
392 | 393 |
| |
393 | 394 |
| |
394 | 395 |
| |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
395 | 403 |
| |
396 | 404 |
| |
397 | 405 |
| |
| |||
4840 | 4848 |
| |
4841 | 4849 |
| |
4842 | 4850 |
| |
| 4851 | + | |
4843 | 4852 |
| |
4844 | 4853 |
| |
4845 | 4854 |
| |
| |||
5814 | 5823 |
| |
5815 | 5824 |
| |
5816 | 5825 |
| |
| 5826 | + | |
| 5827 | + | |
| 5828 | + | |
| 5829 | + | |
| 5830 | + | |
| 5831 | + | |
| 5832 | + | |
5817 | 5833 |
| |
5818 | 5834 |
| |
5819 | 5835 |
| |
| |||
6274 | 6290 |
| |
6275 | 6291 |
| |
6276 | 6292 |
| |
| 6293 | + | |
| 6294 | + | |
| 6295 | + | |
| 6296 | + | |
| 6297 | + | |
| 6298 | + | |
| 6299 | + | |
6277 | 6300 |
| |
6278 | 6301 |
| |
6279 | 6302 |
| |
| |||
9139 | 9162 |
| |
9140 | 9163 |
| |
9141 | 9164 |
| |
| 9165 | + | |
| 9166 | + | |
| 9167 | + | |
| 9168 | + | |
| 9169 | + | |
| 9170 | + | |
| 9171 | + | |
9142 | 9172 |
| |
9143 | 9173 |
| |
9144 | 9174 |
| |
| |||
9213 | 9243 |
| |
9214 | 9244 |
| |
9215 | 9245 |
| |
9216 |
| - | |
| 9246 | + | |
9217 | 9247 |
| |
9218 | 9248 |
| |
9219 | 9249 |
| |
| |||
9397 | 9427 |
| |
9398 | 9428 |
| |
9399 | 9429 |
| |
9400 |
| - | |
| 9430 | + | |
| 9431 | + | |
9401 | 9432 |
| |
9402 | 9433 |
| |
9403 | 9434 |
| |
9404 | 9435 |
| |
9405 | 9436 |
| |
9406 |
| - | |
9407 |
| - | |
| 9437 | + | |
9408 | 9438 |
| |
9409 |
| - | |
| 9439 | + | |
| 9440 | + | |
9410 | 9441 |
| |
9411 | 9442 |
| |
9412 | 9443 |
| |
| |||
9681 | 9712 |
| |
9682 | 9713 |
| |
9683 | 9714 |
| |
| 9715 | + | |
| 9716 | + | |
| 9717 | + | |
| 9718 | + | |
| 9719 | + | |
| 9720 | + | |
| 9721 | + | |
| 9722 | + | |
| 9723 | + | |
| 9724 | + |
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| |||
529 | 529 |
| |
530 | 530 |
| |
531 | 531 |
| |
| 532 | + | |
| 533 | + | |
| 534 | + | |
532 | 535 |
| |
533 | 536 |
| |
534 | 537 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
303 | 303 |
| |
304 | 304 |
| |
305 | 305 |
| |
| 306 | + | |
306 | 307 |
| |
307 | 308 |
|
0 commit comments
Comments
(0)