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 1joaH9-0002gD-St for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jun 2020 22:23:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1joaH5-0003wm-SG for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jun 2020 22:23:15 +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 1joaH5-0003wZ-Ku for pgsql-hackers@lists.postgresql.org; Thu, 25 Jun 2020 22:23:15 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1joaH3-0007iI-5G for pgsql-hackers@postgresql.org; Thu, 25 Jun 2020 22:23:15 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1joaH1-0004UC-0c; Thu, 25 Jun 2020 18:23:11 -0400 Date: Thu, 25 Jun 2020 18:23:11 -0400 From: Bruce Momjian To: Tom Lane Cc: Joseph Nahmias , PostgreSQL-development Subject: Re: create database with template doesn't copy database ACL Message-ID: <20200625222310.GF12486@momjian.us> References: <159136749445.7029.12571169059565185790@wrigleys.postgresql.org> <20200612212951.GB6813@momjian.us> <20200614072613.GA21852@nahmias.net> <20200615031102.GA12121@momjian.us> <1092722.1592191496@sss.pgh.pa.us> <20200615033934.GB12121@momjian.us> <1095907.1592194495@sss.pgh.pa.us> <20200615141032.GC12121@momjian.us> <20200616101054.GC31175@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200616101054.GC31175@momjian.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jun 16, 2020 at 06:10:54AM -0400, Bruce Momjian wrote: > On Mon, Jun 15, 2020 at 10:10:32AM -0400, Bruce Momjian wrote: > > On Mon, Jun 15, 2020 at 12:14:55AM -0400, Tom Lane wrote: > > > Bruce Momjian writes: > > > > Well, I thought we copied everything except things tha can be specified > > > > as different in CREATE DATABASE, though I can see why we would not copy > > > > them. Should we document this or issue a notice about not copying > > > > non-default database attributes? > > > > > > We do not need a notice for behavior that (a) has stood for twenty years > > > or so, and (b) is considerably less broken than any alternative would be. > > > If you feel the docs need improvement, have at that. > > > > Well, I realize it has been this way for a long time, and that no one > > else has complained, but there should be a way for people to know what > > is being copied from the template and what is not. Do we have a clear > > description of what is copied and skipped? > > We already mentioned that ALTER DATABASE settings are not copied, so the > attached patch adds a mention that GRANT-level permissions are not > copied either. Patch applied to all supported versions. Thanks for the discussion. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee