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 1sxtoN-00D6Wb-UY for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Oct 2024 19:54:31 +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 1sxtoL-00FQ8n-Nj for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Oct 2024 19:54:29 +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 1sxtoL-00FQ8e-F3 for pgsql-bugs@lists.postgresql.org; Mon, 07 Oct 2024 19:54:29 +0000 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sxtoF-0034k4-Al for pgsql-bugs@lists.postgresql.org; Mon, 07 Oct 2024 19:54:28 +0000 Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-7a9aa913442so441732785a.1 for ; Mon, 07 Oct 2024 12:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728330861; x=1728935661; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=T9tcLVyQ/1SATuMBFg1BgDJqOPrDMH0vJM+r5bZDoUE=; b=GxigF48FILB85MJ6HFZR9J8TCXEI6rnHtfJ7jtznyAOCT9/0+LfxUBmdGba4Tvihcm xf4VJrZuuPiDQ4HHlLhO7V/ZUeISkjGqn51+lUQ5Afd/ZYTm7NR/K5FCEad9amyhR8uw IRZAfOZMYnceC27SXqLiYywJtIK6P+Rrf+Oxe6RA+A+n0PnUogWQtYQ0SZq+H5uZx3f/ V32yuU9kZiAbrGeGZR5+EwxpAlIbXnvEdtUePHLjNzgZxKejvGQOE9vqSNki1taqq6ny tjpwxV+/7AX3jMUAJtxt+6Mdnv2jfP0UCHUtHITkscRrGoMm7XA3NULaVzRoF+OiGpCw bjHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728330861; x=1728935661; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=T9tcLVyQ/1SATuMBFg1BgDJqOPrDMH0vJM+r5bZDoUE=; b=gCFVbKik1N/VoR8BE6fNNbNK8LyauaAwckHvrpdwUwHf2EbvTjwDNa0Ys+o2q3sL3f hfywsIfbQpcaDLD+c8QGR40ng8hmQc0XMzIbjmkWEjsxm6Fe7ezT55TwRIEDB2kAEctc uJNlWFiZs0nyyteh4t6cHJPdcG6vhcBjyrqxgTA0yVfoNA+r8kWer/VRq7CgxORIJ5fw /G5/V0AaECgy7H56ZrKiE2Hm/iBKIO3CDwbcL1i0TmVthmccUx08DdxeKdJCbYuq9xC4 +4WDMNi55qd2qKDSG2YjcHASDOIlOnw7p+87GDXMQhUtPLOrdZjE0ZqZsKWk7Jen134q pqgA== X-Forwarded-Encrypted: i=1; AJvYcCUSo4CB3TzP6/R/sJnHsZIbKK3aIoHt/qq/Q9kI+BybzyCO1jsE1RbXVVylb2K8mqmzOOaovy61p6fi@lists.postgresql.org X-Gm-Message-State: AOJu0Yxw0bqAHyqVD9Wi83XzcukKAqt+p33NJIbLqsj5/NXwSbSHvqzb LD8b56t0fHpbrsR+qqWXV7HEqD7hIezeQckt1efarb/zUhfFqQVL X-Google-Smtp-Source: AGHT+IHOBvNNVOhsBG2XFCct0gTywdhUEdncpMKsdFUZQHv8mWiHH0+TFF1AVvplZPEOTmF0tn5QFg== X-Received: by 2002:a05:620a:bc8:b0:7a9:b0cb:5bb8 with SMTP id af79cd13be357-7ae6f43757bmr1940327585a.21.1728330861354; Mon, 07 Oct 2024 12:54:21 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7ae75761e8dsm285097485a.107.2024.10.07.12.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 12:54:20 -0700 (PDT) Date: Mon, 7 Oct 2024 14:54:18 -0500 From: Nathan Bossart To: Noah Misch Cc: Michael Paquier , Fujii Masao , Christophe Pettus , vaibhave postgres , Tom Lane , pgsql-bugs@lists.postgresql.org, vsekar@microsoft.com Subject: Re: vacuumdb: permission denied for schema "pg_temp_7" Message-ID: References: <5f37ee56-14fb-44fe-9150-9eb97e10538b@oss.nttdata.com> <2649165.1726898595@sss.pgh.pa.us> <00d98a9f-bec1-4cd0-b59e-1043ae04c8bc@oss.nttdata.com> <20241007194054.5d@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241007194054.5d@rfd.leadboat.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Oct 07, 2024 at 12:40:54PM -0700, Noah Misch wrote: > On Mon, Oct 07, 2024 at 11:16:33AM -0500, Nathan Bossart wrote: >> For consistency with the surrounding code, I think we should schema-qualify >> the operator and add a newline after "WHERE relpersistence != 't'". If >> folks agree, I can handle committing the attached patch. > > Not just code consistency. A code comment requires the schema qualification: > > * Since we execute the constructed query with the default search_path > * (which could be unsafe), everything in this query MUST be fully > * qualified. D'oh. I'm listed as the author of the commit that added that comment and should've remembered it. I'll just go apply the patch now, then. -- nathan