head	1.11;
access;
symbols
	REL9_0_0:1.11
	REL9_1_ALPHA1:1.11
	REL9_0_RC1:1.11
	REL9_0_BETA4:1.11
	REL9_0_STABLE:1.11.0.2
	REL9_0_BETA3:1.11
	REL9_0_BETA2:1.11
	REL7_4_29:1.3
	REL8_0_25:1.5
	REL8_1_21:1.6
	REL8_2_17:1.7
	REL8_3_11:1.8
	REL8_4_4:1.9
	REL9_0_BETA1:1.11
	REL9_0_ALPHA5_BRANCH:1.10.0.8
	REL9_0_ALPHA5:1.10
	REL7_4_28:1.3
	REL8_0_24:1.5
	REL8_1_20:1.6
	REL8_2_16:1.7
	REL8_3_10:1.8
	REL8_4_3:1.9
	REL9_0_ALPHA4:1.10
	REL9_0_ALPHA4_BRANCH:1.10.0.6
	REL8_5_ALPHA3:1.10
	REL8_5_ALPHA3_BRANCH:1.10.0.4
	REL7_4_27:1.3
	REL8_0_23:1.5
	REL8_1_19:1.6
	REL8_2_15:1.7
	REL8_3_9:1.8
	REL8_4_2:1.9
	REL8_5_ALPHA2:1.10
	REL8_5_ALPHA2_BRANCH:1.10.0.2
	REL7_4_26:1.3
	REL8_0_22:1.5
	REL8_1_18:1.6
	REL8_2_14:1.7
	REL8_3_8:1.8
	REL8_4_1:1.9
	REL8_5_ALPHA1:1.9
	REL8_5_ALPHA1_BRANCH:1.9.0.4
	REL8_4_STABLE:1.9.0.2
	REL8_4_0:1.9
	REL8_4_RC2:1.9
	REL8_4_RC1:1.9
	REL8_4_BETA2:1.9
	REL8_4_BETA1:1.9
	REL7_4_25:1.3
	REL8_0_21:1.5
	REL8_1_17:1.6
	REL8_2_13:1.7
	REL8_3_7:1.8
	REL7_4_24:1.3
	REL8_0_20:1.5
	REL8_1_16:1.6
	REL8_2_12:1.7
	REL8_3_6:1.8
	REL7_4_23:1.3
	REL8_0_19:1.5
	REL8_1_15:1.6
	REL8_2_11:1.7
	REL8_3_5:1.8
	REL7_4_22:1.3
	REL8_0_18:1.5
	REL8_1_14:1.6
	REL8_2_10:1.7
	REL8_3_4:1.8
	REL7_4_21:1.3
	REL8_0_17:1.5
	REL8_1_13:1.6
	REL8_2_9:1.7
	REL8_3_3:1.8
	REL7_4_20:1.3
	REL8_0_16:1.5
	REL8_1_12:1.6
	REL8_2_8:1.7
	REL8_3_2:1.8
	REL8_2_7:1.7
	REL8_3_1:1.8
	REL8_3_STABLE:1.8.0.2
	REL8_3_0:1.8
	REL8_3_RC2:1.8
	REL7_4_19:1.3
	REL8_0_15:1.5
	REL8_1_11:1.6
	REL8_2_6:1.7
	REL8_3_RC1:1.8
	REL8_3_BETA4:1.8
	REL8_3_BETA3:1.8
	REL8_3_BETA2:1.8
	REL8_3_BETA1:1.8
	REL7_4_18:1.3
	REL8_0_14:1.5
	REL8_1_10:1.6
	REL8_2_5:1.7
	REL7_4_17:1.3
	REL8_0_13:1.5
	REL8_1_9:1.6
	REL8_2_4:1.7
	REL8_0_12:1.5
	REL8_1_8:1.6
	REL8_2_3:1.7
	REL7_4_16:1.3
	REL8_0_11:1.5
	REL8_1_7:1.6
	REL8_2_2:1.7
	REL8_0_10:1.5
	REL8_1_6:1.6
	REL8_2_1:1.7
	REL7_4_15:1.3
	REL8_2_STABLE:1.7.0.2
	REL8_2_0:1.7
	REL8_2_RC1:1.7
	REL8_2_BETA3:1.7
	REL8_2_BETA2:1.7
	REL8_1_5:1.6
	REL8_0_9:1.5
	REL7_4_14:1.3
	REL8_2_BETA1:1.7
	REL7_4_13:1.3
	REL8_0_8:1.5
	REL8_1_4:1.6
	REL7_4_12:1.3
	REL8_0_7:1.5
	REL8_1_3:1.6
	REL7_4_11:1.3
	REL8_0_6:1.5
	REL8_1_2:1.6
	REL7_4_10:1.3
	REL8_0_5:1.5
	REL8_1_1:1.6
	REL8_1_STABLE:1.6.0.2
	REL8_1_0:1.6
	REL8_1_0RC1:1.6
	REL8_1_0BETA4:1.6
	REL8_1_0BETA3:1.5
	REL7_4_9:1.3
	REL8_0_4:1.5
	REL8_1_0BETA2:1.5
	REL8_1_0BETA1:1.5
	REL7_4_8:1.3
	REL8_0_3:1.5
	REL8_0_2:1.5
	REL7_4_7:1.3
	REL8_0_1:1.5
	REL8_0_STABLE:1.5.0.4
	REL8_0_0:1.5.0.2
	REL8_0_0RC5:1.5
	REL8_0_0RC4:1.5
	REL8_0_0RC3:1.5
	REL8_0_0RC2:1.5
	REL8_0_0RC1:1.5
	REL8_0_0BETA5:1.5
	REL8_0_0BETA4:1.5
	REL7_4_6:1.3
	REL8_0_0BETA3:1.5
	REL8_0_0BETA2:1.5
	REL7_4_5:1.3
	REL7_4_4:1.3
	REL8_0_0BETA1:1.5
	REL7_4_3:1.3
	REL7_4_2:1.3
	REL7_4_1:1.3
	REL7_4:1.3
	REL7_4_RC2:1.3
	REL7_4_STABLE:1.3.0.2
	REL7_4_RC1:1.3
	REL7_4_BETA5:1.3
	REL7_4_BETA4:1.3
	REL7_4_BETA3:1.3
	REL7_4_BETA2:1.1
	WIN32_DEV:1.1.0.2
	REL7_4_BETA1:1.1;
locks; strict;
comment	@# @;


1.11
date	2010.04.03.07.22.57;	author petere;	state Exp;
branches;
next	1.10;

1.10
date	2009.09.19.10.23.26;	author petere;	state Exp;
branches;
next	1.9;

1.9
date	2008.11.14.10.22.45;	author petere;	state Exp;
branches;
next	1.8;

1.8
date	2007.01.23.05.07.17;	author tgl;	state Exp;
branches;
next	1.7;

1.7
date	2006.09.16.00.30.16;	author momjian;	state Exp;
branches;
next	1.6;

1.6
date	2005.10.13.22.44.51;	author tgl;	state Exp;
branches;
next	1.5;

1.5
date	2004.06.25.21.55.50;	author tgl;	state Exp;
branches;
next	1.4;

1.4
date	2003.11.29.19.51.38;	author pgsql;	state Exp;
branches;
next	1.3;

1.3
date	2003.09.09.18.28.52;	author tgl;	state Exp;
branches;
next	1.2;

1.2
date	2003.08.31.17.32.21;	author petere;	state Exp;
branches;
next	1.1;

1.1
date	2003.06.27.14.45.26;	author petere;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2003.09.07.04.36.44;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Remove unnecessary xref endterm attributes and title ids

The endterm attribute is mainly useful when the toolchain does not support
automatic link target text generation for a particular situation.  In  the
past, this was required by the man page tools for all reference page links,
but that is no longer the case, and it now actually gets in the way of
proper automatic link text generation.  The only remaining use cases are
currently xrefs to refsects.
@
text
@<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_opclass.sgml,v 1.10 2009/09/19 10:23:26 petere Exp $
PostgreSQL documentation
-->

<refentry id="SQL-ALTEROPCLASS">
 <refmeta>
  <refentrytitle>ALTER OPERATOR CLASS</refentrytitle>
  <manvolnum>7</manvolnum>
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 </refmeta>

 <refnamediv>
  <refname>ALTER OPERATOR CLASS</refname>
  <refpurpose>change the definition of an operator class</refpurpose>
 </refnamediv>  
  
 <indexterm zone="sql-alteropclass">
  <primary>ALTER OPERATOR CLASS</primary>
 </indexterm>

 <refsynopsisdiv>
<synopsis>
ALTER OPERATOR CLASS <replaceable>name</replaceable> USING <replaceable class="parameter">index_method</replaceable> RENAME TO <replaceable>new_name</replaceable>
ALTER OPERATOR CLASS <replaceable>name</replaceable> USING <replaceable class="parameter">index_method</replaceable> OWNER TO <replaceable>new_owner</replaceable>
</synopsis>
 </refsynopsisdiv>
  
 <refsect1>
  <title>Description</title>

  <para>
   <command>ALTER OPERATOR CLASS</command> changes the definition of
   an operator class.
  </para>

  <para>
   You must own the operator class to use <command>ALTER OPERATOR CLASS</>.
   To alter the owner, you must also be a direct or indirect member of the new
   owning role, and that role must have <literal>CREATE</literal> privilege on
   the operator class's schema.  (These restrictions enforce that altering the
   owner doesn't do anything you couldn't do by dropping and recreating the
   operator class.  However, a superuser can alter ownership of any operator
   class anyway.)
  </para>
 </refsect1>
  
 <refsect1>
  <title>Parameters</title>

  <variablelist>
   <varlistentry>
    <term><replaceable class="parameter">name</replaceable></term>
    <listitem>
     <para>
      The name (optionally schema-qualified) of an existing operator
      class.
     </para>
    </listitem>
   </varlistentry>

   <varlistentry>
    <term><replaceable class="parameter">index_method</replaceable></term>
    <listitem>
     <para>
      The name of the index method this operator class is for.
     </para>
    </listitem>
   </varlistentry>

   <varlistentry>
    <term><replaceable class="parameter">new_name</replaceable></term>
    <listitem>
     <para>
      The new name of the operator class.
     </para>
    </listitem>
   </varlistentry>

   <varlistentry>
    <term><replaceable class="parameter">new_owner</replaceable></term>
    <listitem>
     <para>
      The new owner of the operator class.
     </para>
    </listitem>
   </varlistentry>
 </variablelist>
 </refsect1>

 <refsect1>
  <title>Compatibility</title>

  <para>
   There is no <command>ALTER OPERATOR CLASS</command> statement in
   the SQL standard.
  </para>
 </refsect1>

 <refsect1>
  <title>See Also</title>

  <simplelist type="inline">
   <member><xref linkend="sql-createopclass"></member>
   <member><xref linkend="sql-dropopclass"></member>
   <member><xref linkend="sql-alteropfamily"></member>
  </simplelist>
 </refsect1>
</refentry>
@


1.10
log
@Make the placeholder naming in the synopses of the SQL help more consistent
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_opclass.sgml,v 1.9 2008/11/14 10:22:45 petere Exp $
d8 1
a8 1
  <refentrytitle id="SQL-ALTEROPCLASS-TITLE">ALTER OPERATOR CLASS</refentrytitle>
d104 3
a106 3
   <member><xref linkend="sql-createopclass" endterm="sql-createopclass-title"></member>
   <member><xref linkend="sql-dropopclass" endterm="sql-dropopclass-title"></member>
   <member><xref linkend="sql-alteropfamily" endterm="sql-alteropfamily-title"></member>
@


1.9
log
@Set SQL man pages to be section 7 by default, and only transform them to
another section if required by the platform (instead of the old way of
building them in section "l" and always transforming them to the
platform-specific section).

This speeds up the installation on common platforms, and it avoids some
funny business with the man page tools and build process.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_opclass.sgml,v 1.8 2007/01/23 05:07:17 tgl Exp $
d24 2
a25 2
ALTER OPERATOR CLASS <replaceable>name</replaceable> USING <replaceable class="parameter">index_method</replaceable> RENAME TO <replaceable>newname</replaceable>
ALTER OPERATOR CLASS <replaceable>name</replaceable> USING <replaceable class="parameter">index_method</replaceable> OWNER TO <replaceable>newowner</replaceable>
d72 1
a72 1
    <term><replaceable class="parameter">newname</replaceable></term>
d81 1
a81 1
    <term><replaceable class="parameter">newowner</replaceable></term>
@


1.8
log
@Add CREATE/ALTER/DROP OPERATOR FAMILY commands, also COMMENT ON OPERATOR
FAMILY; and add FAMILY option to CREATE OPERATOR CLASS to allow adding a
class to a pre-existing family.  Per previous discussion.  Man, what a
tedious lot of cutting and pasting ...
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_opclass.sgml,v 1.7 2006/09/16 00:30:16 momjian Exp $
d9 1
@


1.7
log
@Remove emacs info from footer of SGML files.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_opclass.sgml,v 1.6 2005/10/13 22:44:51 tgl Exp $
d105 1
@


1.6
log
@Update documentation to reflect the new ALTER OWNER rules for all
affected types of objects.
@
text
@d2 1
a2 1
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_opclass.sgml,v 1.5 2004/06/25 21:55:50 tgl Exp $
a107 17

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:nil
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil
End:
-->
@


1.5
log
@Support renaming of tablespaces, and changing the owners of
aggregates, conversions, functions, operators, operator classes,
schemas, types, and tablespaces.  Fold the existing implementations
of alter domain owner and alter database owner in with these.

Christopher Kings-Lynne
@
text
@d2 1
a2 1
$PostgreSQL: pgsql-server/doc/src/sgml/ref/alter_opclass.sgml,v 1.4 2003/11/29 19:51:38 pgsql Exp $
d35 10
a83 1
      You must be a superuser to change the owner of an operator class.
@


1.4
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d2 1
a2 1
$PostgreSQL: /cvsroot/pgsql-server/doc/src/sgml/ref/alter_opclass.sgml,v 1.3 2003/09/09 18:28:52 tgl Exp $
d24 1
d33 1
a33 2
   an operator class.  The only functionality is to rename the
   operator class.
d68 11
a78 1
  </variablelist>
@


1.3
log
@Remove a bunch of content-free Diagnostics sections, as per previous
discussion.  (Still have some work to do editing the remainder.)
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/alter_opclass.sgml,v 1.2 2003/08/31 17:32:21 petere Exp $
@


1.2
log
@Add/edit index entries.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/alter_opclass.sgml,v 1.1 2003/06/27 14:45:26 petere Exp $
a64 15
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>
   
 <refsect1>
  <title>Diagnostics</title>

  <variablelist>
   <varlistentry>
    <term><computeroutput>ALTER OPERATOR CLASS</computeroutput></term>
    <listitem>
     <para>
      Message returned if the command was successful.
@


1.1
log
@First batch of object rename commands.
@
text
@d2 1
a2 1
$Header$
d17 4
@


1.1.2.1
log
@Update this branch to match CVS head, includes WIN32 improvements.
@
text
@d2 1
a2 1
$Header: /cvsroot/pgsql-server/doc/src/sgml/ref/alter_opclass.sgml,v 1.2 2003/08/31 17:32:21 petere Exp $
a16 4
 <indexterm zone="sql-alteropclass">
  <primary>ALTER OPERATOR CLASS</primary>
 </indexterm>

@


