On Tue, 6 Sept 2022 at 14:32, David Rowley <dgrowle...@gmail.com> wrote: > I wonder if there are many usages of MemoryContextContains in > extensions. If there's not, I'd be much happier if we got rid of this > function and used GetMemoryChunkContext() in nodeAgg.c and > nodeWindowAgg.c.
I see postgis is one user of it, per [1]. The other extensions mentioned there just seem to be copying code and not using it. David [1] https://codesearch.debian.net/search?q=MemoryContextContains&literal=1