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 1orIbR-0005dq-Ge for pgsql-general@arkaria.postgresql.org; Sat, 05 Nov 2022 12:48:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1orIbO-0005ku-R9 for pgsql-general@arkaria.postgresql.org; Sat, 05 Nov 2022 12:48:46 +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 1orIbO-0005kl-G8 for pgsql-general@lists.postgresql.org; Sat, 05 Nov 2022 12:48:46 +0000 Received: from wolff.to ([98.103.208.27]) by makus.postgresql.org with smtp (Exim 4.92) (envelope-from ) id 1orIbL-0003cN-Ve for pgsql-general@lists.postgresql.org; Sat, 05 Nov 2022 12:48:45 +0000 Received: (qmail 8801 invoked by uid 500); 5 Nov 2022 12:18:36 -0000 Date: Sat, 5 Nov 2022 07:18:36 -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: <20221105121836.GA7716@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. I didn't see any changes related to this in the first draft of the 15.1 release notes. Since I got the impression from the above that there might be a change, I'm sending this as a reminder.