diff --git a/doc/src/sgml/ref/create_database.sgml b/doc/src/sgml/ref/create_database.sgml
index 786a63b702..d770eb1779 100644
--- a/doc/src/sgml/ref/create_database.sgml
+++ b/doc/src/sgml/ref/create_database.sgml
@@ -46,14 +46,6 @@ CREATE DATABASE name
See .
-
- Normally, the creator becomes the owner of the new database.
- Superusers can create databases owned by other users, by using the
- OWNER> clause. They can even create databases owned by
- users with no special privileges. Non-superusers with CREATEDB>
- privilege can only create databases owned by themselves.
-
-
By default, the new database will be created by cloning the standard
system database template1>. A different template can be
@@ -84,9 +76,11 @@ CREATE DATABASE name
dbowner
- The name of the database user who will own the new database,
+ The role name of the user who will own the new database,
or DEFAULT to use the default (namely, the
- user executing the command).
+ user executing the command). To create a database owned by another
+ role, you must be a direct or indirect member of that role,
+ or be a superuser.
diff --git a/doc/src/sgml/ref/create_schema.sgml b/doc/src/sgml/ref/create_schema.sgml
index 14cfa8a8f0..4039c2fc13 100644
--- a/doc/src/sgml/ref/create_schema.sgml
+++ b/doc/src/sgml/ref/create_schema.sgml
@@ -65,7 +65,8 @@ CREATE SCHEMA AUTHORIZATION usernameschemaname
- The name of a schema to be created. If this is omitted, the user name
+ The name of a schema to be created. If this is omitted, the
+ username
is used as the schema name. The name cannot
begin with pg_, as such names
are reserved for system schemas.
@@ -77,9 +78,10 @@ CREATE SCHEMA AUTHORIZATION usernameusername
- The name of the user who will own the schema. If omitted,
- defaults to the user executing the command. Only superusers
- can create schemas owned by users other than themselves.
+ The role name of the user who will own the new schema. If omitted,
+ defaults to the user executing the command. To create a schema
+ owned by another role, you must be a direct or indirect member of
+ that role, or be a superuser.
@@ -176,7 +178,8 @@ CREATE VIEW hollywood.winners AS
all objects within it. PostgreSQL
allows schemas to contain objects owned by users other than the
schema owner. This can happen only if the schema owner grants the
- CREATE> privilege on his schema to someone else.
+ CREATE> privilege on his schema to someone else, or a
+ superuser chooses to create objects in it.