1ALTER SCHEMA(7) SQL Commands ALTER SCHEMA(7)
2
3
4
6 ALTER SCHEMA - change the definition of a schema
7
8
10 ALTER SCHEMA name RENAME TO newname
11 ALTER SCHEMA name OWNER TO newowner
12
13
15 ALTER SCHEMA changes the definition of a schema.
16
17 You must own the schema to use ALTER SCHEMA. To rename a schema you
18 must also have the CREATE privilege for the database. To alter the
19 owner, you must also be a direct or indirect member of the new owning
20 role, and you must have the CREATE privilege for the database. (Note
21 that superusers have all these privileges automatically.)
22
24 name The name of an existing schema.
25
26 newname
27 The new name of the schema. The new name cannot begin with pg_,
28 as such names are reserved for system schemas.
29
30 newowner
31 The new owner of the schema.
32
34 There is no ALTER SCHEMA statement in the SQL standard.
35
37 CREATE SCHEMA [create_schema(7)], DROP SCHEMA [drop_schema(7)]
38
39
40
41SQL - Language Statements 2014-02-17 ALTER SCHEMA(7)