~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to doc/src/sgml/ref/alter_conversion.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_conversion.sgml,v 1.5 2004-06-25 21:55:50 tgl Exp $
 
3
PostgreSQL documentation
 
4
-->
 
5
 
 
6
<refentry id="SQL-ALTERCONVERSION">
 
7
 <refmeta>
 
8
  <refentrytitle id="SQL-ALTERCONVERSION-TITLE">ALTER CONVERSION</refentrytitle>
 
9
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 
10
 </refmeta>
 
11
 
 
12
 <refnamediv>
 
13
  <refname>ALTER CONVERSION</refname>
 
14
  <refpurpose>change the definition of a conversion</refpurpose>
 
15
 </refnamediv>  
 
16
  
 
17
 <indexterm zone="sql-alterconversion">
 
18
  <primary>ALTER CONVERSION</primary>
 
19
 </indexterm>
 
20
 
 
21
 <refsynopsisdiv>
 
22
<synopsis>
 
23
ALTER CONVERSION <replaceable>name</replaceable> RENAME TO <replaceable>newname</replaceable>
 
24
ALTER CONVERSION <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 CONVERSION</command> changes the definition of a
 
33
   conversion.
 
34
  </para>
 
35
 </refsect1>
 
36
  
 
37
 <refsect1>
 
38
  <title>Parameters</title>
 
39
 
 
40
  <variablelist>
 
41
   <varlistentry>
 
42
    <term><replaceable class="parameter">name</replaceable></term>
 
43
    <listitem>
 
44
     <para>
 
45
      The name (optionally schema-qualified) of an existing conversion.
 
46
     </para>
 
47
    </listitem>
 
48
   </varlistentry>
 
49
 
 
50
   <varlistentry>
 
51
    <term><replaceable class="parameter">newname</replaceable></term>
 
52
    <listitem>
 
53
     <para>
 
54
      The new name of the conversion.
 
55
     </para>
 
56
    </listitem>
 
57
   </varlistentry>
 
58
 
 
59
   <varlistentry>
 
60
    <term><replaceable class="parameter">newowner</replaceable></term>
 
61
    <listitem>
 
62
     <para>
 
63
      The new owner of the conversion. To change the owner of a conversion,
 
64
      you must be a superuser.
 
65
     </para>
 
66
    </listitem>
 
67
   </varlistentry>
 
68
  </variablelist>
 
69
 </refsect1>
 
70
 
 
71
 <refsect1>
 
72
  <title>Examples</title>
 
73
 
 
74
  <para>
 
75
   To rename the conversion <literal>iso_8859_1_to_utf_8</literal> to
 
76
   <literal>latin1_to_unicode</literal>:
 
77
<programlisting>
 
78
ALTER CONVERSION iso_8859_1_to_utf_8 RENAME TO latin1_to_unicode;
 
79
</programlisting>
 
80
  </para>
 
81
 
 
82
  <para>
 
83
   To change the owner of the conversion <literal>iso_8859_1_to_utf_8</literal> to
 
84
   <literal>joe</literal>:
 
85
<programlisting>
 
86
ALTER CONVERSION iso_8859_1_to_utf_8 OWNER TO joe;
 
87
</programlisting>
 
88
  </para>
 
89
 </refsect1>
 
90
 
 
91
 <refsect1>
 
92
  <title>Compatibility</title>
 
93
 
 
94
  <para>
 
95
   There is no <command>ALTER CONVERSION</command> statement in the SQL
 
96
   standard.
 
97
  </para>
 
98
 </refsect1>
 
99
 
 
100
 <refsect1>
 
101
  <title>See Also</title>
 
102
 
 
103
  <simplelist type="inline">
 
104
   <member><xref linkend="sql-createconversion" endterm="sql-createconversion-title"></member>
 
105
   <member><xref linkend="sql-dropconversion" endterm="sql-dropconversion-title"></member>
 
106
  </simplelist>
 
107
 </refsect1>
 
108
</refentry>
 
109
 
 
110
<!-- Keep this comment at the end of the file
 
111
Local variables:
 
112
mode: sgml
 
113
sgml-omittag:nil
 
114
sgml-shorttag:t
 
115
sgml-minimize-attributes:nil
 
116
sgml-always-quote-attributes:t
 
117
sgml-indent-step:1
 
118
sgml-indent-data:t
 
119
sgml-parent-document:nil
 
120
sgml-default-dtd-file:"../reference.ced"
 
121
sgml-exposed-tags:nil
 
122
sgml-local-catalogs:"/usr/lib/sgml/catalog"
 
123
sgml-local-ecat-files:nil
 
124
End:
 
125
-->