Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> writes:
> Yeah, it's a bit silly that each resource manager has to do that on
> their own. It would be useful to have a memory context that was
> automatically reset between each WAL record. In fact that should
> probably be the default memory context you run the WAL redo routines in.
+1
> But even if we do that, I'm not in a hurry to remove rm_startup/cleanup.
> They seem generally useful, even if they're not actually used for much
> anymore.
Agreed; they aren't hurting us and they could be useful.
regards, tom lane