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 1olIHu-0000Yl-Cw for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2022 23:15:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1olIHt-0006Eh-C3 for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2022 23:15:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olIHt-0006DD-1C for pgsql-general@lists.postgresql.org; Wed, 19 Oct 2022 23:15:49 +0000 Received: from wolff.to ([98.103.208.27]) by magus.postgresql.org with smtp (Exim 4.92) (envelope-from ) id 1olIHq-0003WL-3R for pgsql-general@lists.postgresql.org; Wed, 19 Oct 2022 23:15:48 +0000 Received: (qmail 12039 invoked by uid 500); 19 Oct 2022 22:48:28 -0000 Date: Wed, 19 Oct 2022 17:48:28 -0500 From: Bruno Wolff III To: Thomas Kellerer Cc: pgsql-general@lists.postgresql.org Subject: Re: Postgres 15 upgrades and template1 public schema Message-ID: <20221019224828.GA11721@wolff.to> Mail-Followup-To: Bruno Wolff III , Thomas Kellerer , pgsql-general@lists.postgresql.org References: <20221019203602.GA6563@wolff.to> <54d740ed-1158-c8d4-4cae-15c06e95c9e6@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <54d740ed-1158-c8d4-4cae-15c06e95c9e6@gmx.net> 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 23:30:58 +0200, Thomas Kellerer wrote: > >Bruno Wolff III schrieb am 19.10.2022 um 22:36: >>I noticed when I did an upgrade from Postgres 14 to 15 that the >>public schema in template1 was still owned by postgres instead of >>pg_database_owner. I was expecting it to change because the release >>notes said that new database clusters would have that. But shouldn't >>new clusters use what is set in template1? > >This is explained in the release notes: > > The change applies to new database clusters and to newly-created > databases in existing clusters. > Upgrading a cluster or restoring a database dump will preserve > public's existing permissions. How do new databases in pre-existing clusters get the new public schema security if it doesn't come from template1?