Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v1S7i-008pqv-8c for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Sep 2025 16:13:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v1S7g-00EFAn-IK for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Sep 2025 16:13:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v1S7g-00EFAf-8u for pgsql-hackers@lists.postgresql.org; Wed, 24 Sep 2025 16:13:40 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v1S7c-002ei5-0e for pgsql-hackers@postgresql.org; Wed, 24 Sep 2025 16:13:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 58OGDYLN3432171; Wed, 24 Sep 2025 12:13:34 -0400 From: Tom Lane To: Nathan Bossart cc: Ayush Vatsa , Robert Haas , "David G. Johnston" , PostgreSQL Hackers Subject: Re: Clarification on Role Access Rights to Table Indexes In-reply-to: References: <149429.1741472260@sss.pgh.pa.us> <279947.1741535285@sss.pgh.pa.us> Comments: In-reply-to Nathan Bossart message dated "Wed, 24 Sep 2025 10:58:25 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3432169.1758730414.1@sss.pgh.pa.us> Date: Wed, 24 Sep 2025 12:13:34 -0400 Message-ID: <3432170.1758730414@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > * RangeVarCallbackForReindexIndex() was checking privileges on the table > before locking it, so I reversed it in 0002. Don't we do that intentionally, to make sure someone can't cause DOS on a table they have no privileges on? regards, tom lane