2
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_schema.sgml,v 1.7 2004-06-25 21:55:50 tgl Exp $
3
PostgreSQL documentation
6
<refentry id="SQL-ALTERSCHEMA">
8
<refentrytitle id="SQL-ALTERSCHEMA-title">ALTER SCHEMA</refentrytitle>
9
<refmiscinfo>SQL - Language Statements</refmiscinfo>
13
<refname>ALTER SCHEMA</refname>
14
<refpurpose>change the definition of a schema</refpurpose>
17
<indexterm zone="sql-alterschema">
18
<primary>ALTER SCHEMA</primary>
23
ALTER SCHEMA <replaceable>name</replaceable> RENAME TO <replaceable>newname</replaceable>
24
ALTER SCHEMA <replaceable>name</replaceable> OWNER TO <replaceable>newowner</replaceable>
29
<title>Description</title>
32
<command>ALTER SCHEMA</command> changes the definition of a schema.
33
To rename a schema you must own the schema and have the privilege
34
<literal>CREATE</literal> for the database. To change the owner
35
of a schema, you must be a superuser.
40
<title>Parameters</title>
44
<term><replaceable>name</replaceable></term>
47
The name of an existing schema.
53
<term><replaceable>newname</replaceable></term>
56
The new name of the schema. The new name cannot
57
begin with <literal>pg_</literal>, as such names
58
are reserved for system schemas.
64
<term><replaceable class="parameter">newowner</replaceable></term>
67
The new owner of the schema.
75
<title>Compatibility</title>
78
There is no <command>ALTER SCHEMA</command> statement in the SQL
84
<title>See Also</title>
86
<simplelist type="inline">
87
<member><xref linkend="sql-createschema" endterm="sql-createschema-title"></member>
88
<member><xref linkend="sql-dropschema" endterm="sql-dropschema-title"></member>
94
<!-- Keep this comment at the end of the file
99
sgml-minimize-attributes:nil
100
sgml-always-quote-attributes:t
103
sgml-parent-document:nil
104
sgml-default-dtd-file:"../reference.ced"
105
sgml-exposed-tags:nil
106
sgml-local-catalogs:"/usr/lib/sgml/catalog"
107
sgml-local-ecat-files:nil