Re: recovery modules
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Michael Paquier <michael@paquier.xyz>, pgsql-hackers@postgresql.org
Date: 2023-02-01T21:23:26Z
Lists: pgsql-hackers
Attachments
- v4-0001-s-ArchiveContext-ArchiveCallbacks.patch (text/x-diff)
On Wed, Feb 01, 2023 at 01:06:06PM -0800, Andres Freund wrote: > On 2023-02-01 12:15:29 -0800, Nathan Bossart wrote: >> Here's a new patch set in which I've attempted to address this feedback and >> Michael's feedback. > > Looks better! Thanks! >> @@ -25,12 +34,14 @@ extern PGDLLIMPORT char *XLogArchiveLibrary; >> * For more information about the purpose of each callback, refer to the >> * archive modules documentation. >> */ >> -typedef bool (*ArchiveCheckConfiguredCB) (void); >> -typedef bool (*ArchiveFileCB) (const char *file, const char *path); >> -typedef void (*ArchiveShutdownCB) (void); >> +typedef void (*ArchiveStartupCB) (ArchiveModuleState *state); >> +typedef bool (*ArchiveCheckConfiguredCB) (ArchiveModuleState *state); >> +typedef bool (*ArchiveFileCB) (const char *file, const char *path, ArchiveModuleState *state); >> +typedef void (*ArchiveShutdownCB) (ArchiveModuleState *state); > > Personally I'd always pass ArchiveModuleState *state as the first arg, > but it's not important. Yeah, that's nicer. cfbot is complaining about a missing #include, so I need to send a new revision anyway. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com
Commits
-
Redesign archive modules
- 35739b87dcfe 16.0 landed
-
Remove uses of AssertVariableIsOfType() obsoleted by f2b73c8
- 30b789eafed2 16.0 landed
-
Rename contrib module basic_archive to basic_wal_module
- 0ad3c60caf5f 16.0 landed
-
Refactor code for restoring files via shell commands
- 14bdb3f13de1 16.0 landed
-
Refactor code in charge of running shell-based recovery commands
- 9a740f81eb02 16.0 landed