On Fri, Apr 21, 2023 at 12:49 PM Melanie Plageman <melanieplage...@gmail.com> wrote: > If using a separate memory context solely for the purpose of accounting > is considered an anti-pattern, ...
This thread isn't the right place to argue about the merits of that patch, at least IMHO, but I don't think that's an anti-pattern. If we need to keep track of how much memory is being used, it sure sounds like a better idea to use a memory context for that than to invent some bespoke infrastructure. -- Robert Haas EDB: http://www.enterprisedb.com