Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q8l01-00012o-BZ for pgsql-committers@arkaria.postgresql.org; Mon, 12 Jun 2023 17:06:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q8kz1-0003nY-W9 for pgsql-committers@arkaria.postgresql.org; Mon, 12 Jun 2023 17:05:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q8kz1-0003nP-Hl for pgsql-committers@lists.postgresql.org; Mon, 12 Jun 2023 17:05:35 +0000 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q8kyy-001xrG-Gj for pgsql-committers@lists.postgresql.org; Mon, 12 Jun 2023 17:05:34 +0000 Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-3f9dd2fabe2so738611cf.3 for ; Mon, 12 Jun 2023 10:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1686589531; x=1689181531; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=+bqpt+MTgPE5hQyys7T5qmZIUk+f1IjFhhN8WfkJWPc=; b=K4h5TYbRBoTruqQepMwMxWN/olObRAoD2buM1iPx8GfWOINb+L5/z39EcpedJRlNkz VUK+ZwomsQjjUFsTlHOToX/nr/bHkaSBdM8vuUecsKXQrYB655lX72kuabNS1/tMIjMN j4lYLPnF57rf4tb7Q/8zjznWFYVJOu+T7kXxg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686589531; x=1689181531; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+bqpt+MTgPE5hQyys7T5qmZIUk+f1IjFhhN8WfkJWPc=; b=epCh8fnxw613CkpIFuizJL2SDiWBk8Ibn60dkQ5aRVVJTvF0O0i+8qAPumngooeanc ZtlRT5L+Wlc+lDOfTlL9uHxMqeUDOxbw1i/u4LS2yZKymut+WUCeEAG3mt8DbGGUE9GC BMk3LQ8q/1BHUmV8aU4WkXJOgTEv5ANAfv5pLF3bc/6pqanmFIcgyd+UIo4dBcrRf/u7 O2MJYRxmHruyPzXQk8ugSIN34lOpvCfPuoKWHgRfgJ4H85dVD7sb9t+e89S+Ma6HD4dp qPH/BweJs1AOek5pUGRKu7UhYQtlMV8m4WYHpZFYDUzAPSwYop6+v19QqPGpFpUFbi+h A+sQ== X-Gm-Message-State: AC+VfDySq+d+DtB1mZPOKxLZYfCOD4fc+UiRpKEui6aW0x1WAjPwFWfk dftKae5KrSILk0AoAKuTLb6avw== X-Google-Smtp-Source: ACHHUZ7UloNBk1xhyKsaC48KdXeGyYTRtmjHvPj36N8kOBYGqJ17vPFeD1yFJUAM7hwKyhC2C6uOjQ== X-Received: by 2002:a05:6214:27ce:b0:626:e55:dfb2 with SMTP id ge14-20020a05621427ce00b006260e55dfb2mr9874796qvb.39.1686589530769; Mon, 12 Jun 2023 10:05:30 -0700 (PDT) Received: from gust.leadboat.com ([2605:59c8:21b1:8c10:5c59:7df0:f954:e081]) by smtp.gmail.com with ESMTPSA id t18-20020a0cea32000000b006260e7361ebsm3348104qvp.1.2023.06.12.10.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 10:05:30 -0700 (PDT) Date: Mon, 12 Jun 2023 13:05:10 -0400 From: Noah Misch To: Tom Lane Cc: Jeff Davis , Jeff Davis , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix search_path to a safe value during maintenance operations. Message-ID: <20230612170510.GA201972@gust.leadboat.com> References: <89a415b86d5421941e4281ba5bf6288934078624.camel@j-davis.com> <573014.1686375211@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <573014.1686375211@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Jun 10, 2023 at 01:33:31AM -0400, Tom Lane wrote: > Jeff Davis 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.