Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olOj7-00088Z-Qn for pgsql-general@arkaria.postgresql.org; Thu, 20 Oct 2022 06:08:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1olOj6-00064y-60 for pgsql-general@arkaria.postgresql.org; Thu, 20 Oct 2022 06:08:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olOj5-00064p-Mz for pgsql-general@lists.postgresql.org; Thu, 20 Oct 2022 06:08:19 +0000 Received: from wolff.to ([98.103.208.27]) by makus.postgresql.org with smtp (Exim 4.92) (envelope-from ) id 1olOj3-0005l2-4x for pgsql-general@lists.postgresql.org; Thu, 20 Oct 2022 06:08:18 +0000 Received: (qmail 30049 invoked by uid 500); 20 Oct 2022 05:40:57 -0000 Date: Thu, 20 Oct 2022 00:40:57 -0500 From: Bruno Wolff III To: Tom Lane Cc: Bruce Momjian , Thomas Kellerer , pgsql-general@lists.postgresql.org Subject: Re: Postgres 15 upgrades and template1 public schema Message-ID: <20221020054057.GA29941@wolff.to> Mail-Followup-To: Bruno Wolff III , Tom Lane , Bruce Momjian , Thomas Kellerer , pgsql-general@lists.postgresql.org References: <20221019203602.GA6563@wolff.to> <54d740ed-1158-c8d4-4cae-15c06e95c9e6@gmx.net> <20221019224828.GA11721@wolff.to> <2949522.1666223992@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <2949522.1666223992@sss.pgh.pa.us> User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Oct 19, 2022 at 19:59:52 -0400, Tom Lane wrote: > >The release notes could probably use some tweaking here. It looks to >me like pg_dumpall (and hence pg_upgrade) will adjust the ownership and >permissions of template1's public schema to match what was in the old >installation, but it doesn't touch template0. Hence, whether a >"newly-created database in an existing cluster" has the old or new >properties of the public schema will depend on whether you clone it >from template1 or template0. That definitely needs explained, and >maybe we should recommend that DBAs consider manually changing >what's in template1. This answers my question about what is actually happening. I think expanding the release notes section on this a bit could be helpful for other people.