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 1srmj8-004RuF-Kj for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Sep 2024 23:07:51 +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 1srmj6-00DA7Y-1C for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Sep 2024 23:07:49 +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 1srmj5-00DA7D-Oe for pgsql-bugs@lists.postgresql.org; Fri, 20 Sep 2024 23:07:49 +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.94.2) (envelope-from ) id 1srmj2-000GAZ-OH for pgsql-bugs@lists.postgresql.org; Fri, 20 Sep 2024 23:07:48 +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 48KN7eam2603143; Fri, 20 Sep 2024 19:07:40 -0400 From: Tom Lane To: Noah Misch cc: Nathan Bossart , vaibhave postgres , pgsql-bugs@lists.postgresql.org, vsekar@microsoft.com Subject: Re: vacuumdb: permission denied for schema "pg_temp_7" In-reply-to: <20240920215030.8d.nmisch@google.com> References: <20240920190731.37.nmisch@google.com> <20240920215030.8d.nmisch@google.com> Comments: In-reply-to Noah Misch message dated "Fri, 20 Sep 2024 14:50:30 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2603141.1726873660.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 20 Sep 2024 19:07:40 -0400 Message-ID: <2603142.1726873660@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Noah Misch writes: >>>> That helps, but we'd probably want to do something more general about= vacuumdb >>>> and schema USAGE permission. I agree a more general fix is needed, but I think excluding temp tables as suggested is a good idea for performance, independently of permissions concerns. vacuum_rel() will ignore requests to vacuum such tables, which is why we've not heard complaints before, but nonetheless we're wasting server round trips by issuing those requests. regards, tom lane