2
.\" Title: ALTER OPERATOR
3
.\" Author: The PostgreSQL Global Development Group
4
.\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
6
.\" Manual: PostgreSQL 9.1beta1 Documentation
7
.\" Source: PostgreSQL 9.1beta1
10
.TH "ALTER OPERATOR" "7" "2011-04-27" "PostgreSQL 9.1beta1" "PostgreSQL 9.1beta1 Documentation"
11
.\" -----------------------------------------------------------------
12
.\" * set default formatting
13
.\" -----------------------------------------------------------------
14
.\" disable hyphenation
16
.\" disable justification (adjust text to left margin only)
18
.\" -----------------------------------------------------------------
19
.\" * MAIN CONTENT STARTS HERE *
20
.\" -----------------------------------------------------------------
22
ALTER_OPERATOR \- change the definition of an operator
27
ALTER OPERATOR \fIname\fR ( { \fIleft_type\fR | NONE } , { \fIright_type\fR | NONE } ) OWNER TO \fInew_owner\fR
28
ALTER OPERATOR \fIname\fR ( { \fIleft_type\fR | NONE } , { \fIright_type\fR | NONE } ) SET SCHEMA \fInew_schema\fR
33
changes the definition of an operator\&. The only currently available functionality is to change the owner of the operator\&.
35
You must own the operator to use
36
ALTER OPERATOR\&. To alter the owner, you must also be a direct or indirect member of the new owning role, and that role must have
38
privilege on the operator\(aqs schema\&. (These restrictions enforce that altering the owner doesn\(aqt do anything you couldn\(aqt do by dropping and recreating the operator\&. However, a superuser can alter ownership of any operator anyway\&.)
43
The name (optionally schema\-qualified) of an existing operator\&.
48
The data type of the operator\(aqs left operand; write
50
if the operator has no left operand\&.
55
The data type of the operator\(aqs right operand; write
57
if the operator has no right operand\&.
62
The new owner of the operator\&.
67
The new schema for the operator\&.
71
Change the owner of a custom operator
80
ALTER OPERATOR @@ (text, text) OWNER TO joe;
89
statement in the SQL standard\&.
91
CREATE OPERATOR (\fBCREATE_OPERATOR\fR(7)), DROP OPERATOR (\fBDROP_OPERATOR\fR(7))