~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to doc/src/sgml/ref/alter_schema.sgml

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--
 
2
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_schema.sgml,v 1.7 2004-06-25 21:55:50 tgl Exp $
 
3
PostgreSQL documentation
 
4
-->
 
5
 
 
6
<refentry id="SQL-ALTERSCHEMA">
 
7
 <refmeta>
 
8
  <refentrytitle id="SQL-ALTERSCHEMA-title">ALTER SCHEMA</refentrytitle>
 
9
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 
10
 </refmeta>
 
11
 
 
12
 <refnamediv>
 
13
  <refname>ALTER SCHEMA</refname>
 
14
  <refpurpose>change the definition of a schema</refpurpose>
 
15
 </refnamediv>
 
16
 
 
17
 <indexterm zone="sql-alterschema">
 
18
  <primary>ALTER SCHEMA</primary>
 
19
 </indexterm>
 
20
 
 
21
 <refsynopsisdiv>
 
22
<synopsis>
 
23
ALTER SCHEMA <replaceable>name</replaceable> RENAME TO <replaceable>newname</replaceable>
 
24
ALTER SCHEMA <replaceable>name</replaceable> OWNER TO <replaceable>newowner</replaceable>
 
25
</synopsis>
 
26
 </refsynopsisdiv>
 
27
 
 
28
 <refsect1>
 
29
  <title>Description</title>
 
30
 
 
31
  <para>
 
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.
 
36
  </para>
 
37
 </refsect1>
 
38
 
 
39
 <refsect1>
 
40
  <title>Parameters</title>
 
41
 
 
42
  <variablelist>
 
43
   <varlistentry>
 
44
    <term><replaceable>name</replaceable></term>
 
45
    <listitem>
 
46
     <para>
 
47
      The name of an existing schema.
 
48
     </para>
 
49
    </listitem>
 
50
   </varlistentry>
 
51
 
 
52
   <varlistentry>
 
53
    <term><replaceable>newname</replaceable></term>
 
54
    <listitem>
 
55
     <para>
 
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.
 
59
     </para>
 
60
    </listitem>
 
61
   </varlistentry>
 
62
 
 
63
   <varlistentry>
 
64
    <term><replaceable class="parameter">newowner</replaceable></term>
 
65
    <listitem>
 
66
     <para>
 
67
      The new owner of the schema.
 
68
     </para>
 
69
    </listitem>
 
70
   </varlistentry>
 
71
  </variablelist>
 
72
 </refsect1>
 
73
 
 
74
 <refsect1>
 
75
  <title>Compatibility</title>
 
76
    
 
77
  <para>
 
78
   There is no <command>ALTER SCHEMA</command> statement in the SQL
 
79
   standard.
 
80
  </para>
 
81
 </refsect1>
 
82
 
 
83
 <refsect1>
 
84
  <title>See Also</title>
 
85
 
 
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>
 
89
  </simplelist>
 
90
 </refsect1>
 
91
 
 
92
</refentry>
 
93
 
 
94
<!-- Keep this comment at the end of the file
 
95
Local variables:
 
96
mode: sgml
 
97
sgml-omittag:nil
 
98
sgml-shorttag:t
 
99
sgml-minimize-attributes:nil
 
100
sgml-always-quote-attributes:t
 
101
sgml-indent-step:1
 
102
sgml-indent-data: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
 
108
End:
 
109
-->