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 1srtDG-005Chu-Uu for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Sep 2024 06:03:23 +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 1srtDD-00EMTl-Pt for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Sep 2024 06:03:21 +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 1srtDD-00EMTU-Bz for pgsql-bugs@lists.postgresql.org; Sat, 21 Sep 2024 06:03:20 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1srtDB-000I6J-Pi for pgsql-bugs@lists.postgresql.org; Sat, 21 Sep 2024 06:03:19 +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 48L63FXs2649166; Sat, 21 Sep 2024 02:03:15 -0400 From: Tom Lane To: Fujii Masao cc: Noah Misch , 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: <5f37ee56-14fb-44fe-9150-9eb97e10538b@oss.nttdata.com> References: <20240920190731.37.nmisch@google.com> <20240920215030.8d.nmisch@google.com> <2603142.1726873660@sss.pgh.pa.us> <5f37ee56-14fb-44fe-9150-9eb97e10538b@oss.nttdata.com> Comments: In-reply-to Fujii Masao message dated "Sat, 21 Sep 2024 14:59:51 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2649164.1726898595.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 21 Sep 2024 02:03:15 -0400 Message-ID: <2649165.1726898595@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Fujii Masao writes: > It looks like reindexdb has the same issue. It would be good to > update reindexdb to skip temp tables as well to fix this. Agreed. > For the proposed patch, it seems better to use CppAsString2(RELPERSISTEN= CE_TEMP) > instead of 't'. +1, if we can easily avoid hard-coding that value we should do so. It's not that we're going to change the value; it's that it makes it way easier to grep the source tree for relevant code. regards, tom lane