On Thu, Dec 03, 2026 at 05:50:01PM +0800, cca5507 wrote: > After adf97c1562, the "MemoryContextSwitchTo(hashtable->hashCxt)" in > ExecHashTableCreate() is useless, so attach a patch to remove it. While > at it, rename "oldctx" to "oldcxt" to keep consistent and fix a stale > comment.
Seems generally reasonable. > Now PrepareTempTablespaces() will not be called within hashCxt, but I > think it's ok. I do, too, but only after inspecting the code to be sure PrepareTempTablespaces() doesn't ever leak memory. While that's pretty old code that is unlikely to withstand too many changes in the future, IMHO it'd be a good idea to note that some callers depend on it not leaking memory. That way, future patch authors will be more likely to free everything they allocated. -- nathan
