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 1qwmPq-00EDym-SA for pgsql-docs@arkaria.postgresql.org; Sat, 28 Oct 2023 16:44:02 +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 1qwmOq-004xqG-Bf for pgsql-docs@arkaria.postgresql.org; Sat, 28 Oct 2023 16:43:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwmOq-004xq8-4I for pgsql-docs@lists.postgresql.org; Sat, 28 Oct 2023 16:43:00 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwmOn-002kt0-4p for pgsql-docs@lists.postgresql.org; Sat, 28 Oct 2023 16:42:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description; bh=pc7JvIPzEt+LCkH/gt69UpT4n51AXP/jAgwshbJql2Q=; b=Yog9W M40rS3uln/MA2WvbtN6UPNX9xhxk5ramgFFmAu3wc4eZibJWY/6UA2ABsC+EoeTlOMzIenkWzYczD ARpcj4WB4xeI8S6wyB8CLQVRU0+eoDs3InndK/y0KhpIHi7j3SkcHQnUvHKIxFgnEOL7/B9PHw+Pg w8pQTbY9wV4AnrhTVvh9Enr8mbNvQ5vpevUDITNNeyBqxeQNTGLMYUl0P3GbV20c0bnaD8qoIzNOV Eo1pwf+dh7zVK9Lv5CNg03qU5duV+17YsBJIPmyi09Ee21n9XbSEfJ64k+WDLmZDoD3lJ9BSd81Th NyCqHAwV0WeCqMsRPJRSOuWzaAoBg==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qwmOm-008ceL-1L; Sat, 28 Oct 2023 12:42:56 -0400 Date: Sat, 28 Oct 2023 12:42:56 -0400 From: Bruce Momjian To: david@kapitaltrading.com, pgsql-docs@lists.postgresql.org Subject: Re: "22.3. Template Databases" documentation is incomplete Message-ID: References: <166007719137.995877.13951579839074751714@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1wh28ozbUlTQf/Bn" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --1wh28ozbUlTQf/Bn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Oct 28, 2023 at 12:18:50PM -0400, Bruce Momjian wrote: > On Tue, Aug 9, 2022 at 08:33:11PM +0000, PG Doc comments form wrote: > > The following documentation comment has been logged on the website: > > > > Page: https://www.postgresql.org/docs/14/manage-ag-templatedbs.html > > Description: > > > > The documentation for creating databases from templates is incomplete, and > > should mention that access privileges are not copied. So, for example, > > issuing: > > > > create database newdb with template existingdb owner someuser; > > > > results in the newly-created database lacking the access privileges that > > exist in the template. > > > > cf: https://www.postgresql.org/docs/13/manage-ag-templatedbs.html > > I have created the attached patch to document this. Sorry, I attached a _colorized_ diff; here is a normal one. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you. --1wh28ozbUlTQf/Bn Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="template.diff" diff --git a/doc/src/sgml/manage-ag.sgml b/doc/src/sgml/manage-ag.sgml index 192c500994..b852783a6c 100644 --- a/doc/src/sgml/manage-ag.sgml +++ b/doc/src/sgml/manage-ag.sgml @@ -210,7 +210,8 @@ createdb -O rolename dbnamePL/Perl in template1, it will automatically be available in user databases without any extra - action being taken when those databases are created. + action being taken when those databases are created. It does not copy + database-level GRANT permissions. --1wh28ozbUlTQf/Bn--