Hi, > > 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.
I think it's harmless even if it leaks some memory because we only need to call it once within a transaction, so the memory won’t grow indefinitely. -- Regards, ChangAo Chen
