Re: Faster "SET search_path" - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Faster "SET search_path"
Date
Msg-id e6fded24cb8a2c53d4ef069d9f69cc7baaafe9ef.camel@j-davis.com
Whole thread Raw
In response to Re: Faster "SET search_path"  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Faster "SET search_path"
List pgsql-hackers
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


Attachment

pgsql-hackers by date:

Previous
From: Melanie Plageman
Date:
Subject: Re: lazy_scan_heap() should release lock on buffer before vacuuming FSM
Next
From: Michael Paquier
Date:
Subject: Re: Remove MSVC scripts from the tree