]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
doc: CREATE DATABASE doesn't copy db-level perms. from template
authorBruce Momjian <bruce@momjian.us>
Fri, 3 Nov 2023 17:39:50 +0000 (13:39 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 3 Nov 2023 17:39:50 +0000 (13:39 -0400)
Reported-by: david@kapitaltrading.com
Discussion: https://postgr.es/m/166007719137.995877.13951579839074751714@wrigleys.postgresql.org

Backpatch-through: 11

doc/src/sgml/manage-ag.sgml

index 8903ab2fc9c64f478ce3e36f75699221a0954578..b1035d0dcab1afa59a4b0397b777638364e81db2 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