Re: Xact end leaves CurrentMemoryContext = TopMemoryContext
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: David Rowley <dgrowleyml@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2024-06-18T20:48:18Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > I wonder if there's an argument the "persistent" TopTransactionContext should > live under a different name outside of transactions, to avoid references to it > working in a context where it's not valid? It's probably not worth it, but > not sure. Hm. We could stash the long-lived pointer in a static variable, and only install it in TopTransactionContext when you're supposed to use it. I tend to agree not worth it, though. regards, tom lane
Commits
-
Split vacuumdb to create vacuuming.c/h
- c4067383cb2c 19 (unreleased) cited
-
Preserve CurrentMemoryContext across notify and sinval interrupts.
- 8565fb6fbb69 12.20 landed
- 5f86cd70d801 13.16 landed
- 54a7b21b3a9d 16.4 landed
- 4df767cf906d 15.8 landed
- 31f8d620b287 17.0 landed
- 1608902fc3a7 14.13 landed
-
Preserve CurrentMemoryContext across Start/CommitTransactionCommand.
- 1afe31f03cd2 18.0 landed