doc: CREATE DATABASE doesn't copy db-level perms. from template
authorBruce Momjian <[email protected]>
Fri, 3 Nov 2023 17:39:50 +0000 (13:39 -0400)
committerBruce Momjian <[email protected]>
Fri, 3 Nov 2023 17:39:50 +0000 (13:39 -0400)
Reported-by: [email protected]
Discussion: https://postgr.es/m/166007719137.995877.13951579839074751714@wrigleys.postgresql.org

Backpatch-through: 11

doc/src/sgml/manage-ag.sgml

index 192c500994545f3a6783f03b40b548d5995ddcf5..f9fe47b6a29d7c7cbfa3fbc63e9627d2693fbc19 100644 (file)
@@ -213,6 +213,12 @@ createdb -O <replaceable>rolename</replaceable> <replaceable>dbname</replaceable
    action being taken when those databases are created.
   </para>
 
+  <para>
+   However, <command>CREATE DATABASE</command> does not copy database-level
+   <command>GRANT</command> permissions attached to the source database.
+   The new database has default database-level permissions.
+  </para>
+
   <para>
    There is a second standard system database named
    <literal>template0</literal>.<indexterm><primary>template0</primary></indexterm> This