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 1q9VGi-0000CZ-44 for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jun 2023 18:30:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q9VGg-0001Hb-TK for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jun 2023 18:30:54 +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 1q9VGg-0001HQ-G0 for pgsql-hackers@lists.postgresql.org; Wed, 14 Jun 2023 18:30:54 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q9VGb-002NVz-MI for pgsql-hackers@postgresql.org; Wed, 14 Jun 2023 18:30:53 +0000 Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-54fb3c168fcso1799709a12.0 for ; Wed, 14 Jun 2023 11:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20221208.gappssmtp.com; s=20221208; t=1686767447; x=1689359447; 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=44UotkfKPu/bCkcJUOM9N1jgFpgkZyTpd+OZYRQupkM=; b=tyVXlwaGiGz99gmLAp9voI0FnHO8EAV1W6Olp6n/Wl9EeibskS0YPO6TbWOP0GuLC1 BSmr7jLep8zLIGeeHxRzOZ8SwFcQZ5rRoh/0jMYh994yUAJC9iNSJChcTY3LP5pBGYbz nZUCUv3jov4xvdWXVF4H/+3BPUdcdWJf291eG/n+6JpCZ971dBq9A1Ofw2c70gGT92z7 +srZPKRLEVYuh4quFguP1xvc0CA7tkA2vTK4li48ScsFmK0S5gCfp0tlrCvsLEJaopjX S/eiGwDjQvzOxKQQP44mYJh94KVd50MGlCZHYkhlOBZT9p+sPiEXm9TM0ufBEDx6OK7h eg3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686767447; x=1689359447; 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=44UotkfKPu/bCkcJUOM9N1jgFpgkZyTpd+OZYRQupkM=; b=Z8HJacslGqDRIAOgAzBbkBYyChc/fXBVXZ3AQgBE0XHSdG572XFv4yRf2swpREiw4Z XImOcXyVlpMrua6a9/3ynMduB5DwnhGBovZJgH4X13y2OzzbY/7DWiNrfIfuEZiSUJE1 pimH8DW03esI6V2eYzno6mSs2xlKkopo+1H3Vc2BMyRjTbXAMg2VCICOeqcL+tQ68Fzi KCsOxgHbqakrzOQiyUySbtNnhsQqP7t1NGC4ATosh1JyMK+tOGWBsyu5l2/j+78cATt4 s0v3Le689EYrnEHkwr5MfXEmvKHJeFoUvyP08XIQiah2sLVtn1Qv2RYAcFKvdCh4O6zw FpQg== X-Gm-Message-State: AC+VfDwBQtrbwKv8dJu+BHTOrimpiFgoLk4iodWKjLChCNTppuguOM3t A0keSIIPdjdqVX78OJ+tRLre/w== X-Google-Smtp-Source: ACHHUZ7d6HvGjnwgnU4aYe4hYRQ7QxSULsBHhBeoQYSB6iGo4I/aha3FAPhmihtRe2HB8Zl038roWw== X-Received: by 2002:a17:90a:68cc:b0:259:3e7d:4371 with SMTP id q12-20020a17090a68cc00b002593e7d4371mr2118435pjj.22.1686767447567; Wed, 14 Jun 2023 11:30:47 -0700 (PDT) Received: from [172.18.4.17] ([12.126.244.130]) by smtp.gmail.com with ESMTPSA id 28-20020a17090a191c00b0025bfdc93d73sm4832853pjg.14.2023.06.14.11.30.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 11:30:46 -0700 (PDT) Message-ID: <9dc1b3fce809c5bc6592583910cd13a175a38ff6.camel@j-davis.com> Subject: Re: allow granting CLUSTER, REFRESH MATERIALIZED VIEW, and REINDEX From: Jeff Davis To: Nathan Bossart Cc: Ted Yu , Pavel Luzanov , Justin Pryzby , pgsql-hackers@postgresql.org Date: Wed, 14 Jun 2023 11:30:45 -0700 In-Reply-To: <20230613211246.GA219055@nathanxps13> References: <20221217060408.GA1256247@nathanxps13> <20221218233018.GA1476904@nathanxps13> <20230103234549.GA289060@nathanxps13> <20230109225157.GA1288965@nathanxps13> <7d2a8b72e23c8236281c6e00ae790327f965a8e5.camel@j-davis.com> <20230113203334.GA2206335@nathanxps13> <20230113225626.GA2380176@nathanxps13> <20230113231339.GA2422750@nathanxps13> <20230613211246.GA219055@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-13 at 14:12 -0700, Nathan Bossart wrote: > I've been reviewing ff9618e lately, and I'm wondering whether it has > the > same problem that 19de0ab solved.=C2=A0 Specifically, ff9618e introduces > has_partition_ancestor_privs(), which is used to check whether a user > has > MAINTAIN on any partition ancestors.=C2=A0 This involves syscache lookups= , > and > presently this function does not take any relation locks.=C2=A0 I did > spend some > time trying to induce cache lookup errors, but I didn't have any > luck. > However, unless this can be made safe without too much trouble, I > think I'm > inclined to partially revert ff9618e, leaving the TOAST-related parts > intact. Agreed. Having it work on partition hierarchies is a nice-to-have, but not central to the usability of the feature. If it's causing problems, best to take that out and reconsider in 17 if worthwhile. Regards, Jeff Davis