Re: Getting rid of OverrideSearhPath in namespace.c

From: Noah Misch <noah(at)leadboat(dot)com>
To: Aleksander Alekseev <aleksander(at)timescale(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Alexander Lakhin <exclusion(at)gmail(dot)com>
Subject: Re: Getting rid of OverrideSearhPath in namespace.c
Date: 2023-08-01 00:06:28
Message-ID: 20230801000628.GA10592@gust.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jul 17, 2023 at 05:11:46PM +0300, Aleksander Alekseev wrote:
> > As a follow-up for the CVE-2023-2454 fix, I think that it makes sense to
> > completely remove unsafe functions
> > PushOverrideSearchPath()/PopOverrideSearchPath(), which are not used in the
> > core now.
> > Please look at the patch attached.
> >
> > [...]
> >
> > What do you think?
>
> +1 to remove dead code.
>
> The proposed patch however removes get_collation_oid(), apparently by
> mistake. Other than that the patch looks fine and passes `make
> installcheck-world`.
>
> I added an entry to the nearest CF [1].
>
> > Beside that, maybe it's worth to rename three functions in "Override" in
> > their names: GetOverrideSearchPath(), CopyOverrideSearchPath(),
> > OverrideSearchPathMatchesCurrent(), and then maybe struct OverrideSearchPath.
> > Noah Misch proposed name GetSearchPathMatcher() for the former.
>
> +1 as well. I added the corresponding 0002 patch.

Pushed both. Thanks.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2023-08-01 00:10:52 Re: pltcl tests fail with FreeBSD 13.2
Previous Message Andres Freund 2023-08-01 00:05:11 Re: pltcl tests fail with FreeBSD 13.2