aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2023-11-14 17:51:03 -0800
committerJeff Davis <jdavis@postgresql.org>2023-11-14 17:53:30 -0800
commitf26c2368dcaef7519d8400ca958c4b5742cdbd46 (patch)
tree9e118e042e0d4251e19d2dfe13d691d9ef8e1ecc /src/backend/executor
parent7f6bc3b356787e5dbc0d371c9c53cb125c20cd6d (diff)
downloadpostgresql-f26c2368dcaef7519d8400ca958c4b5742cdbd46.tar.gz
postgresql-f26c2368dcaef7519d8400ca958c4b5742cdbd46.zip
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
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions