Re: fix archive module shutdown callback - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Re: fix archive module shutdown callback
Date
Msg-id CALj2ACXtpSSfP1xEdrD2vp7Q95=9Ls55bUsG3c0qRu4dc_yo5A@mail.gmail.com
Whole thread Raw
In response to Re: fix archive module shutdown callback  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Mon, Oct 17, 2022 at 11:17 AM Michael Paquier <michael@paquier.xyz> wrote:
>
> On Mon, Oct 17, 2022 at 02:30:52PM +0900, Kyotaro Horiguchi wrote:
>
> Removing PG_ENSURE_ERROR_CLEANUP() and relying on before_shmem_exit()
> is fine by me, that's what I imply upthread.

Hm. Here's a v2 patch that addresses review comments. In addition to
making it a before_shmem_exit() callback, this patch also does the
following things:
1) Renames call_archive_module_shutdown_callback() to be more
meaningful and generic as before_shmem_exit() callback.
2) Clarifies when the archive module shutdown callback gets called in
documentation.
3) Defines a shutdown callback that just emits a log message in
shell_archive.c and tests it.

Please review it further.

--
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: [PATCH] Fix build with LLVM 15 or above
Next
From: Richard Guo
Date:
Subject: Re: Unnecessary lateral dependencies implied by PHVs