1ALTER SCHEMA()                   SQL Commands                   ALTER SCHEMA()
2
3
4

NAME

6       ALTER SCHEMA - change the definition of a schema
7
8

SYNOPSIS

10       ALTER SCHEMA name RENAME TO newname
11       ALTER SCHEMA name OWNER TO newowner
12
13

DESCRIPTION

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

PARAMETERS

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

COMPATIBILITY

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

SEE ALSO

37       CREATE SCHEMA [create_schema(7)], DROP SCHEMA [drop_schema(l)]
38
39
40
41SQL - Language Statements         2008-06-08                    ALTER SCHEMA()
Impressum