Andy Fan <zhihui.fan1...@gmail.com> writes: > Planning is expensive and we use plancache to bypass its effect. I find the > $subject recently which is caused by we register NAMESPACEOID invalidation > message for pg_temp_%s as well as other normal namespaces. Is it a > must?
Since we don't normally delete those namespaces once they exist, the number of such events is negligible over the life of a database (at least in production scenarios). I'm having a very hard time getting excited about spending effort here. Also, you can't just drop the inval event, because even if you believe it's irrelevant to other backends (a questionable assumption), it certainly is relevant locally. regards, tom lane