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 1srt6b-005BXv-Rm for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Sep 2024 05:56:30 +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 1srt6Z-00EHi0-NA for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Sep 2024 05:56:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1srt6Z-00EHho-EU for pgsql-bugs@lists.postgresql.org; Sat, 21 Sep 2024 05:56:28 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1srt6X-000I32-Vd for pgsql-bugs@lists.postgresql.org; Sat, 21 Sep 2024 05:56:27 +0000 Received: from [172.20.10.7] (unknown [49.97.72.107]) by oss.nttdata.com (Postfix) with ESMTPSA id 161EB61ACD; Sat, 21 Sep 2024 14:56:23 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <059dfcc2-81fd-4936-8d92-099490c0c713@oss.nttdata.com> Date: Sat, 21 Sep 2024 14:56:22 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: vacuumdb: permission denied for schema "pg_temp_7" Content-Language: en-US To: Noah Misch , vaibhave postgres , nathandbossart@gmail.com Cc: pgsql-bugs@lists.postgresql.org, vsekar@microsoft.com References: <20240920190731.37.nmisch@google.com> From: Fujii Masao In-Reply-To: <20240920190731.37.nmisch@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024/09/21 4:07, Noah Misch wrote: > Non-superuser vacuumdb > must be rare indeed for this to go unnoticed long enough to leave all > supported branches affected. Yes. And more users might notice this in v17 or later, since v17 supports the maintain privilege. Some users may want to use a role with the maintain privilege to run vacuumdb. If they forget to grant USAGE privilege on the temp table's schema to that role, they'll encounter the same issue. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION