postgresql/src/backend/access
Fujii Masao d75288fb27 Make archiver process an auxiliary process.
This commit changes WAL archiver process so that it's treated as
an auxiliary process and can use shared memory. This is an infrastructure
patch required for upcoming shared-memory based stats collector patch
series. These patch series basically need any processes including archiver
that can report the statistics to access to shared memory. Since this patch
itself is useful to simplify the code and when users monitor the status of
archiver, it's committed separately in advance.

This commit simplifies the code for WAL archiving. For example, previously
backends need to signal to archiver via postmaster when they notify
archiver that there are some WAL files to archive. On the other hand,
this commit removes that signal to postmaster and enables backends to
notify archier directly using shared latch.

Also, as the side of this change, the information about archiver process
becomes viewable at pg_stat_activity view.

Author: Kyotaro Horiguchi
Reviewed-by: Andres Freund, Álvaro Herrera, Julien Rouhaud, Tomas Vondra, Arthur Zakirov, Fujii Masao
Discussion: https://postgr.es/m/20180629.173418.190173462.horiguchi.kyotaro@lab.ntt.co.jp
2021-03-15 13:13:14 +09:00
..
brin Pass down "logically unchanged index" hint. 2021-01-13 08:11:00 -08:00
common Add back vacuum_cleanup_index_scale_factor parameter. 2021-03-11 12:42:46 -08:00
gin VACUUM VERBOSE: Count "newly deleted" index pages. 2021-02-25 14:32:18 -08:00
gist C comments: improve description of GiST NSN and GistBuildLSN 2021-03-10 17:03:10 -05:00
hash Pass down "logically unchanged index" hint. 2021-01-13 08:11:00 -08:00
heap Notice that heap page has dead items during VACUUM. 2021-03-14 18:05:57 -07:00
index Fix GiST index deletion assert issue. 2021-01-26 23:24:37 -08:00
nbtree Consolidate nbtree VACUUM metapage routines. 2021-03-12 13:11:47 -08:00
rmgrdesc Don't consider newly inserted tuples in nbtree VACUUM. 2021-03-10 16:27:01 -08:00
spgist VACUUM VERBOSE: Count "newly deleted" index pages. 2021-02-25 14:32:18 -08:00
table Enhance nbtree index tuple deletion. 2021-01-13 09:21:32 -08:00
tablesample Update copyright for 2021 2021-01-02 13:06:25 -05:00
transam Make archiver process an auxiliary process. 2021-03-15 13:13:14 +09:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00