1ALTER SCHEMA(7)          PostgreSQL 12.2 Documentation         ALTER SCHEMA(7)
2
3
4

NAME

6       ALTER_SCHEMA - change the definition of a schema
7

SYNOPSIS

9       ALTER SCHEMA name RENAME TO new_name
10       ALTER SCHEMA name OWNER TO { new_owner | CURRENT_USER | SESSION_USER }
11

DESCRIPTION

13       ALTER SCHEMA changes the definition of a schema.
14
15       You must own the schema to use ALTER SCHEMA. To rename a schema you
16       must also have the CREATE privilege for the database. To alter the
17       owner, you must also be a direct or indirect member of the new owning
18       role, and you must have the CREATE privilege for the database. (Note
19       that superusers have all these privileges automatically.)
20

PARAMETERS

22       name
23           The name of an existing schema.
24
25       new_name
26           The new name of the schema. The new name cannot begin with pg_, as
27           such names are reserved for system schemas.
28
29       new_owner
30           The new owner of the schema.
31

COMPATIBILITY

33       There is no ALTER SCHEMA statement in the SQL standard.
34

SEE ALSO

36       CREATE SCHEMA (CREATE_SCHEMA(7)), DROP SCHEMA (DROP_SCHEMA(7))
37
38
39
40PostgreSQL 12.2                      2020                      ALTER SCHEMA(7)
Impressum