Re: pgsql: Fix search_path to a safe value during maintenance operations.

From: Noah Misch <noah(at)leadboat(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jeff Davis <pgsql(at)j-davis(dot)com>, Jeff Davis <jdavis(at)postgresql(dot)org>, pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Fix search_path to a safe value during maintenance operations.
Date: 2023-06-12 17:05:10
Message-ID: 20230612170510.GA201972@gust.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Sat, Jun 10, 2023 at 01:33:31AM -0400, Tom Lane wrote:
> Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> > Attached a patch to mark those functions as PARALLEL UNSAFE, which
> > fixes the problem.
>
> > Alternatively, I could just take out that line, as those SQL functions
> > are not controlled by the MAINTAIN privilege. But for consistency I
> > think it's a good idea to leave it in so that index functions are
> > called with the right search path for amcheck.
>
> I concur with the upthread objection that it is way too late in
> the release cycle to be introducing a breaking change like this.
> I request that you revert it.

The timing was not great, but this is fixing a purported defect in an older
v16 feature. If the MAINTAIN privilege is actually fine, we're all set for
v16. If MAINTAIN does have a material problem that $SUBJECT had fixed, we
should either revert MAINTAIN, un-revert $SUBJECT, or fix the problem a
different way.

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2023-06-12 17:33:45 Re: pgsql: Fix search_path to a safe value during maintenance operations.
Previous Message Tom Lane 2023-06-12 14:54:54 pgsql: Accept fractional seconds in jsonpath's datetime() method.

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2023-06-12 17:10:33 Re: [RFC] building postgres with meson - v12
Previous Message Tristan Partin 2023-06-12 16:54:42 Re: Meson build updates