| From: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
|---|---|
| To: | Fujii Masao <fujii(at)postgresql(dot)org> |
| Cc: | pgsql-committers <pgsql-committers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: pgsql: Make archiver process an auxiliary process. |
| Date: | 2021-06-12 10:36:41 |
| Message-ID: | CA+hUKGLah2w1pWKHonZP_+EQw69=q56AHYwCgEN8GDzsRG_Hgw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
On Mon, Mar 15, 2021 at 5:14 PM Fujii Masao <fujii(at)postgresql(dot)org> wrote:
> 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.
I think this needs to handle ProcSignalBarrierPending. Otherwise,
code that tries to use proc signal barriers (like CF #2962 and #2602)
might hang forever when an archiver is running.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew Dunstan | 2021-06-12 12:44:15 | pgsql: Fix new recovery test for use under msys |
| Previous Message | Michael Paquier | 2021-06-12 07:30:02 | pgsql: Simplify some code in getObjectTypeDescription() |