Content-Length: 234775 | pFad | https://github.com/postgrespro/postgres/commit/f26c2368dcaef7519d8400ca958c4b5742cdbd46

90 Add cache for recomputeNamespacePath(). · postgrespro/postgres@f26c236 · GitHub
Skip to content

Commit f26c236

Browse files
committed
Add cache for recomputeNamespacePath().
When search_path is changed to something that was previously set, and no invalidation happened in between, use the cached list of namespace OIDs rather than recomputing them. This avoids syscache lookups and ACL checks. Important when the search_path changes frequently, such as when set in proconfig. An earlier version of this patch was reviewd by Nathan Bossart. This version simplifies a few things and is safer in case of OOM. Discussion: https://www.postgresql.org/message-id/abf4ce8804e0e05dff8c1725ae6a8ed28b7d66e0.camel%40j-davis.com Reviewed-by: Nathan Bossart
1 parent 7f6bc3b commit f26c236

File tree

1 file changed

+341
-63
lines changed

1 file changed

+341
-63
lines changed

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres/commit/f26c2368dcaef7519d8400ca958c4b5742cdbd46

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy