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 1qwm1Y-00EBVO-3I for pgsql-docs@arkaria.postgresql.org; Sat, 28 Oct 2023 16:18:56 +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 1qwm1W-004uxd-CO for pgsql-docs@arkaria.postgresql.org; Sat, 28 Oct 2023 16:18:54 +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 1qwm1W-004uxV-4P for pgsql-docs@lists.postgresql.org; Sat, 28 Oct 2023 16:18:54 +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 1qwm1T-002klE-7u for pgsql-docs@lists.postgresql.org; Sat, 28 Oct 2023 16:18:52 +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=39dlnK8b0u7SgWXjc98YZlc+BYX5wcKO2zTNfisZ8YM=; b=ZEkSy i8WzcBAL5aZwsdxQDQKx6fKSPQLVr+zMLRJhMdX+t1sR0a5hCMHHe72+Xiv+QfGJba6GOgNv8mibw a5gNlW6IniX3YOm8bt8q5pxkIQ0bfFSZbUAAF3iDTrAzdHPxKhkYMYQdt4U5InJHrEOwMa9h16y9J cwhqLwxra/GjmryXs6sUPz6VKVqbA1Z5DFdaRZWL7iI6BSmSSAuA0NiKkOUcOF6W3FQHPY3HD+z93 CflThlFl7fFAuVb2mJG602nwLy3IsC5ECBkXJ07Q8vaRZbfX+zWwidMkMh8XmfOEgYr6+/VtZQ9Ez f64nDb88TjUuRnZycEiAaiF0Sbymw==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qwm1S-008bGt-0l; Sat, 28 Oct 2023 12:18:50 -0400 Date: Sat, 28 Oct 2023 12:18:50 -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="NnWsjr/2iyeHv1KY" Content-Disposition: inline In-Reply-To: <166007719137.995877.13951579839074751714@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --NnWsjr/2iyeHv1KY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you. --NnWsjr/2iyeHv1KY Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="template.diff" Content-Transfer-Encoding: quoted-printable =1B[1mdiff --git a/doc/src/sgml/manage-ag.sgml b/doc/src/sgml/manage-ag.sgm= l=1B[m =1B[1mindex 192c500994..b852783a6c 100644=1B[m =1B[1m--- a/doc/src/sgml/manage-ag.sgml=1B[m =1B[1m+++ b/doc/src/sgml/manage-ag.sgml=1B[m =1B[36m@@ -210,7 +210,8 @@=1B[m =1B[mcreatedb -O rolename dbnamePL/Perl in template1, it will=1B[m automatically be available in user databases without any extra=1B[m action being taken when those databases are created. =1B[32mIt does not= copy=1B[m =1B[32m database-level GRANT permissions.=1B[m =1B[m =1B[m --NnWsjr/2iyeHv1KY--