~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to doc/src/sgml/ref/alter_operator.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_operator.sgml,v 1.1 2004-06-25 21:55:50 tgl Exp $
 
3
PostgreSQL documentation
 
4
-->
 
5
 
 
6
<refentry id="SQL-ALTEROPERATOR">
 
7
 <refmeta>
 
8
  <refentrytitle id="SQL-ALTEROPERATOR-TITLE">ALTER OPERATOR</refentrytitle>
 
9
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 
10
 </refmeta>
 
11
 
 
12
 <refnamediv>
 
13
  <refname>ALTER OPERATOR</refname>
 
14
  <refpurpose>change the definition of an operator</refpurpose>
 
15
 </refnamediv>  
 
16
  
 
17
 <indexterm zone="sql-alteroperator">
 
18
  <primary>ALTER OPERATOR</primary>
 
19
 </indexterm>
 
20
 
 
21
 <refsynopsisdiv>
 
22
<synopsis>
 
23
ALTER OPERATOR <replaceable>name</replaceable> ( { <replaceable>lefttype</replaceable> | NONE } , { <replaceable>righttype</replaceable> | NONE } ) OWNER TO <replaceable>newowner</replaceable>
 
24
</synopsis>
 
25
 </refsynopsisdiv>
 
26
  
 
27
 <refsect1>
 
28
  <title>Description</title>
 
29
 
 
30
  <para>
 
31
   <command>ALTER OPERATOR</command> changes the definition of
 
32
   an operator.  The only currently available functionality is to change the
 
33
   owner of the operator.
 
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 operator.
 
46
     </para>
 
47
    </listitem>
 
48
   </varlistentry>
 
49
 
 
50
   <varlistentry>
 
51
    <term><replaceable class="parameter">lefttype</replaceable></term>
 
52
    <listitem>
 
53
     <para>
 
54
      The data type of the operator's left operand; write
 
55
      <literal>NONE</literal> if the operator has no left operand.
 
56
     </para>
 
57
    </listitem>
 
58
   </varlistentry>
 
59
 
 
60
   <varlistentry>
 
61
    <term><replaceable class="parameter">righttype</replaceable></term>
 
62
    <listitem>
 
63
     <para>
 
64
      The data type of the operator's right operand; write
 
65
      <literal>NONE</literal> if the operator has no right operand.
 
66
     </para>
 
67
    </listitem>
 
68
   </varlistentry>
 
69
 
 
70
   <varlistentry>
 
71
    <term><replaceable class="parameter">newowner</replaceable></term>
 
72
    <listitem>
 
73
     <para>
 
74
      The new owner of the operator.
 
75
      You must be a superuser to change the owner of an operator.
 
76
     </para>
 
77
    </listitem>
 
78
   </varlistentry>
 
79
  </variablelist>
 
80
 </refsect1>
 
81
 
 
82
 <refsect1>
 
83
  <title>Examples</title>
 
84
 
 
85
  <para>
 
86
   Change the owner of a custom operator <literal>a @@ b</literal> for type <type>text</type>:
 
87
<programlisting>
 
88
ALTER OPERATOR @@ (text, text) OWNER TO joe;
 
89
</programlisting>
 
90
  </para>
 
91
 </refsect1>
 
92
 
 
93
 <refsect1>
 
94
  <title>Compatibility</title>
 
95
 
 
96
  <para>
 
97
   There is no <command>ALTER OPERATOR</command> statement in
 
98
   the SQL standard.
 
99
  </para>
 
100
 </refsect1>
 
101
 
 
102
 <refsect1>
 
103
  <title>See Also</title>
 
104
 
 
105
  <simplelist type="inline">
 
106
   <member><xref linkend="sql-createoperator" endterm="sql-createoperator-title"></member>
 
107
   <member><xref linkend="sql-dropoperator" endterm="sql-dropoperator-title"></member>
 
108
  </simplelist>
 
109
 </refsect1>
 
110
</refentry>
 
111
 
 
112
<!-- Keep this comment at the end of the file
 
113
Local variables:
 
114
mode: sgml
 
115
sgml-omittag:nil
 
116
sgml-shorttag:t
 
117
sgml-minimize-attributes:nil
 
118
sgml-always-quote-attributes:t
 
119
sgml-indent-step:1
 
120
sgml-indent-data:t
 
121
sgml-parent-document:nil
 
122
sgml-default-dtd-file:"../reference.ced"
 
123
sgml-exposed-tags:nil
 
124
sgml-local-catalogs:"/usr/lib/sgml/catalog"
 
125
sgml-local-ecat-files:nil
 
126
End:
 
127
-->