Re: Faster "SET search_path"
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Isaac Morland <isaac.morland@gmail.com>, pgsql-hackers@postgresql.org
Date: 2023-11-17T00:46:10Z
Lists: pgsql-hackers
Attachments
- v9-0005-Optimize-SearchPathCache-by-saving-the-last-entry.patch (text/x-patch) patch v9-0005
- v9-0004-Optimize-check_search_path-by-using-SearchPathCac.patch (text/x-patch) patch v9-0004
- v9-0003-Be-more-paranoid-about-OOM-when-changing-search_p.patch (text/x-patch) patch v9-0003
On Tue, 2023-11-14 at 20:13 -0800, Jeff Davis wrote: > On Thu, 2023-10-19 at 19:01 -0700, Jeff Davis wrote: > > 0003: Cache for recomputeNamespacePath. > > Committed with some further simplification around the OOM handling. While I considered OOM during hash key initialization, I missed some other potential out-of-memory hazards. Attached a fixup patch 0003, which re-introduces one list copy but it simplifies things substantially in addition to being safer around OOM conditions. > > 0004: Use the same cache to optimize check_search_path(). > > 0005: Optimize cache for repeated lookups of the same value. Also attached new versions of these patches. Regards, Jeff Davis
Commits
-
Fix missing invalidations for search_path cache.
- b3bd18294ee4 18.0 landed
- d3e076549b99 17.0 landed
-
Optimize SearchPathCache by saving the last entry.
- a86c61c9eefa 17.0 landed
-
Optimize check_search_path() by using SearchPathCache.
- ad57c2a7c586 17.0 landed
-
Be more paranoid about OOM in search_path cache.
- 8efa301532c8 17.0 landed
-
Add cache for recomputeNamespacePath().
- f26c2368dcae 17.0 landed
-
Transform proconfig for faster execution.
- 5765cfe18c59 17.0 landed