forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd75288f
committed
Make archiver process an auxiliary process.
This commit changes WAL archiver process so that it's treated asan auxiliary process and can use shared memory. This is an infrastructurepatch required for upcoming shared-memory based stats collector patchseries. These patch series basically need any processes including archiverthat can report the statistics to access to shared memory. Since this patchitself is useful to simplify the code and when users monitor the status ofarchiver, it's committed separately in advance.This commit simplifies the code for WAL archiving. For example, previouslybackends need to signal to archiver via postmaster when they notifyarchiver that there are some WAL files to archive. On the other hand,this commit removes that signal to postmaster and enables backends tonotify archier directly using shared latch.Also, as the side of this change, the information about archiver processbecomes viewable at pg_stat_activity view.Author: Kyotaro HoriguchiReviewed-by: Andres Freund, Álvaro Herrera, Julien Rouhaud, Tomas Vondra, Arthur Zakirov, Fujii MasaoDiscussion:https://postgr.es/m/20180629.173418.190173462.horiguchi.kyotaro@lab.ntt.co.jp1 parent0ea71c9 commitd75288f
File tree
11 files changed
+162
-213
lines changed- doc/src/sgml
- src
- backend
- access/transam
- bootstrap
- postmaster
- storage/ipc
- include
- postmaster
- storage
- tools/pgindent
11 files changed
+162
-213
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
935 | 935 |
| |
936 | 936 |
| |
937 | 937 |
| |
| 938 | + | |
938 | 939 |
| |
939 | 940 |
| |
940 | 941 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
32 |
| - | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| |||
491 | 491 |
| |
492 | 492 |
| |
493 | 493 |
| |
494 |
| - | |
| 494 | + | |
495 | 495 |
| |
496 | 496 |
| |
497 | 497 |
| |
|
Lines changed: 12 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
317 | 317 |
| |
318 | 318 |
| |
319 | 319 |
| |
| 320 | + | |
| 321 | + | |
| 322 | + | |
320 | 323 |
| |
321 | 324 |
| |
322 | 325 |
| |
| |||
437 | 440 |
| |
438 | 441 |
| |
439 | 442 |
| |
440 |
| - | |
441 | 443 |
| |
442 |
| - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
443 | 449 |
| |
444 | 450 |
| |
445 |
| - | |
446 | 451 |
| |
447 |
| - | |
| 452 | + | |
448 | 453 |
| |
449 | 454 |
| |
450 |
| - | |
451 | 455 |
| |
452 |
| - | |
| 456 | + | |
453 | 457 |
| |
454 | 458 |
| |
455 |
| - | |
456 | 459 |
| |
457 | 460 |
| |
458 |
| - | |
| 461 | + | |
459 | 462 |
| |
460 | 463 |
| |
461 |
| - | |
462 | 464 |
| |
463 |
| - | |
| 465 | + | |
464 | 466 |
| |
465 | 467 |
| |
466 | 468 |
| |
|
0 commit comments
Comments
(0)