Re: Call rm_redo in a temporary memory context

2024-10-01 Thread Michael Paquier
On Tue, Oct 01, 2024 at 03:29:19PM +0500, Kirill Reshke wrote: > Compiler warns about `src/backend/access/transam/xlogrecovery.c:1860`, > where we switch to maybe-uninitialized memory context. Lets assign > this to something. + yourself e.g. in rm_startup. Starting with version + 18.0, it'

Re: Call rm_redo in a temporary memory context

2024-10-01 Thread Kirill Reshke
Hi! On Wed, 7 Aug 2024 at 16:24, Heikki Linnakangas wrote: > > Many resource managers set up a temporary memory context which is reset > after replaying the record. It seems a bit silly for each rmgr to do > that on their own, so I propose that we do it in a centralized fashion. > The attached pa

Call rm_redo in a temporary memory context

2024-08-07 Thread Heikki Linnakangas
Many resource managers set up a temporary memory context which is reset after replaying the record. It seems a bit silly for each rmgr to do that on their own, so I propose that we do it in a centralized fashion. The attached patch creates one new temporary context and switches to it for each r