Re: fix archive module shutdown callback
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, nathandbossart@gmail.com, pgsql-hackers@postgresql.org
Date: 2022-10-18T09:08:07Z
Lists: pgsql-hackers
Attachments
- v2-0001-Fixes-related-to-archive-module-shutdown-callback.patch (application/x-patch) patch v2-0001
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
Commits
-
Rework shutdown callback of archiver modules
- 5d2a47a29242 15.1 landed
- 9668c4a6618c 16.0 landed