Re: Bug fix. autovacuum.c do_worker_start() associates memory allocations with TopMemoryContext rather than 'Autovacuum start worker (tmp)'
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, reid.thompson@crunchydata.com, pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-09-01T00:35:05Z
Lists: pgsql-hackers
On Wed, Aug 31, 2022 at 01:09:22PM -0700, Andres Freund wrote: > On 2022-08-31 16:05:03 -0400, Tom Lane wrote: >> Even if there's only a visible leak in v15/HEAD, I'm inclined >> to back-patch this all the way, because it's certainly buggy >> on its own terms. It's just the merest accident that neither >> caller is leaking other stuff into TopMemoryContext, because >> they both think they are using a short-lived context. > > +1 Ouch. Thanks for the quick fix and the backpatch. -- Michael
Commits
-
Prevent long-term memory leakage in autovacuum launcher.
- 1c1294be716d 16.0 landed
- feec1b2d5af4 14.6 landed
- fd640dbb8674 10.23 landed
- cb9232d166a8 11.18 landed
- 8fc6b9635dd3 12.13 landed
- 45f7152b9b38 13.9 landed
- 0c599e748f2c 15.0 landed