| From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
|---|---|
| To: | Andres Freund <andres(at)anarazel(dot)de> |
| Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: recovery modules |
| Date: | 2023-01-30 20:04:22 |
| Message-ID: | 20230130200422.GA2797238@nathanxps13 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, Jan 30, 2023 at 11:48:10AM -0800, Andres Freund wrote:
> I don't think _PG_archive_module_init() should actually allocate a memory
> context and do other similar initializations. Instead it should just return
> 'const ArchiveModuleCallbacks*', typically a single line.
>
> Allocations etc should happen in one of the callbacks. That way we can
> actually have multiple instances of a module.
I think we'd need to invent a startup callback for archive modules for this
to work, but that's easy enough.
--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2023-01-30 20:06:46 | Re: Making background psql nicer to use in tap tests |
| Previous Message | Nathan Bossart | 2023-01-30 20:00:55 | Re: postgres_fdw uninterruptible during connection establishment / ProcSignalBarrier |