Re: [18] Fix a few issues with the collation cache

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Jeff Davis <pgsql@j-davis.com>
Cc: pgsql-hackers@postgresql.org
Date: 2024-12-10T23:45:23Z
Lists: pgsql-hackers
On Tue, Dec 10, 2024 at 03:34:50PM -0800, Jeff Davis wrote:
> I committed some of the patches and fixed problem #1.
> 
> The way I used ResourceOwners to fix problems #2 and #3 is a bit
> awkward. I'm not sure if it's worth the ceremony to try to avoid leaks
> during OOM. And other paths that leak could be fixed more simply by
> freeing it directly rather than relying on the resowner mechanism.
> I think I'll withdraw this patch and submit a separate patch to do it
> the simpler way.

Okay, thanks for the update.
--
Michael

Commits

  1. Tighten up make_libc_collator() and make_icu_collator().