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 1qC0iX-0005MR-Uy for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jun 2023 16:30:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qC0iW-0006NV-Ru for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jun 2023 16:30:00 +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 1qC0iW-0006Jk-J9 for pgsql-hackers@lists.postgresql.org; Wed, 21 Jun 2023 16:30:00 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qC0iU-003qz4-6h for pgsql-hackers@postgresql.org; Wed, 21 Jun 2023 16:29:59 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1b5018cb4dcso30054745ad.2 for ; Wed, 21 Jun 2023 09:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20221208.gappssmtp.com; s=20221208; t=1687364996; x=1689956996; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=dtk0AF8jm9jOZSi9F6YOTbd000IY5PhKCQRDT2sGR6A=; b=rnCA12eMUpM2CivRTNDSdm8s/jrTxOZQ+obPclO7yI38QRyw24/vIHotlrc7JbMQUz 08UVygk5uBXyPJf736EeIDzm71njm7c5llqhkJBWsn9tQS1l4Ohy4CF7w9ggUyPLL8RN PK7hYoLpjM7iabGI9rEaEAR4HxZSTT/iYoUJ+7LpVVEMHsDJ3X/+h5nfIZcnGb5M7sBk q1RK+Z5aSsrIFmbCoMGWqgj4oTS1PD0gztQn0wQDZeKziCqhSdml0/X7PZMzXhBSCZa3 XR8HxyRK4j6i+szkXVtMJG8CXweZK82MEs1qK1j/oJx9fov0PLmhOivhU36OlUlvqvT8 g5vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687364996; x=1689956996; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=dtk0AF8jm9jOZSi9F6YOTbd000IY5PhKCQRDT2sGR6A=; b=cHKx4081TqmYjmxGyRVwypfrDXcRxYVa77GeJEM4pw+NodBVi0M7atQzaBEAvt83uM wkmQxlbJ0NQvnVDejWOs9M4De31RZ4Y0UWRzwnzKkjnzkB2kBeJGPRo6bWo4KoSe+BWA ZE/98kjJiUvFvKxoRIekKSLutj4WzQbphiMjF/CJqdppa9T47XNcNDt8MxO4VNUiPUbH aN1xNnwPfzU9f7r5UxI2CaNLi0UUlBzboNnkH24FcHyI/bi94viAQy4DhVSCJI4ilkfN +b27ypO0PoT3KqC+l336RneeZIacvq8gcx8ZzXv6xjV27JJvCnLCPQi2j3rlXaPN6oDE n4bQ== X-Gm-Message-State: AC+VfDwYWVcRJudwdhyrg7wZNVycUXEq1evkL/Reg7I5lA4mYRuT9dsc OlqHRhaj8phd1S4AG4yfNyESLQ== X-Google-Smtp-Source: ACHHUZ7UF4z8mBpDSdHb/7zKhjJvv5pCWe2Fr5W10nXyp+U+ktfCMr9ZGsThCoSabRx24GGhlbjQPw== X-Received: by 2002:a17:902:bd48:b0:1b3:696f:b83 with SMTP id b8-20020a170902bd4800b001b3696f0b83mr5273927plx.45.1687364996451; Wed, 21 Jun 2023 09:29:56 -0700 (PDT) Received: from jeff-laptop.lan (c-73-170-46-202.hsd1.ca.comcast.net. [73.170.46.202]) by smtp.gmail.com with ESMTPSA id p2-20020a170902e74200b001b3c892c367sm3742532plf.63.2023.06.21.09.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 09:29:55 -0700 (PDT) Message-ID: Subject: Re: allow granting CLUSTER, REFRESH MATERIALIZED VIEW, and REINDEX From: Jeff Davis To: Nathan Bossart Cc: Michael Paquier , Ted Yu , Pavel Luzanov , Justin Pryzby , pgsql-hackers@postgresql.org Date: Wed, 21 Jun 2023 09:29:54 -0700 In-Reply-To: <20230620225257.GA771663@nathanxps13> References: <20230613211246.GA219055@nathanxps13> <20230613235442.GA222795@nathanxps13> <20230614181711.GA488295@nathanxps13> <20230615041044.GA736001@nathanxps13> <20230615235700.GA877311@nathanxps13> <20230616052025.GA1026700@nathanxps13> <20230619215534.GA442477@nathanxps13> <20230620225257.GA771663@nathanxps13> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2023-06-20 at 15:52 -0700, Nathan Bossart wrote: > At the moment, I think I'm inclined to call this "existing behavior" > since > we didn't check privileges for each partition in this case even > before > MAINTAIN was introduced.=C2=A0 IIUC we still process the individual > partitions > in v15 regardless of whether the calling user owns the partition. That's fine with me. I just wanted to bring it up in case someone else thought it was a problem. > However, I do agree that it feels inconsistent.=C2=A0 Besides the options > you > proposed, we might also consider making REINDEX work a bit more like > VACUUM > and ANALYZE and emit a WARNING for any relations that the user is not > permitted to process.=C2=A0 But this probably deserves its own thread, an= d > it > might even need to wait until v17. Yes, we can revisit for 17. Regards, Jeff Davis