GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ALTER_OPERATOR (7)

.ds Aq ’

NAME

ALTER_OPERATOR - change the definition of an operator

CONTENTS

SYNOPSIS

ALTER OPERATOR name ( { left_type | NONE } , { right_type | NONE } )
    OWNER TO { new_owner | CURRENT_USER | SESSION_USER }

ALTER OPERATOR name ( { left_type | NONE } , { right_type | NONE } ) SET SCHEMA new_schema

DESCRIPTION

ALTER OPERATOR changes the definition of an operator. The only currently available functionality is to change the owner of the operator.

You must own the operator to use 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 CREATE privilege on the operators schema. (These restrictions enforce that altering the owner doesnt do anything you couldnt do by dropping and recreating the operator. However, a superuser can alter ownership of any operator anyway.)

PARAMETERS

name

The name (optionally schema-qualified) of an existing operator.

left_type

The data type of the operators left operand; write NONE if the operator has no left operand.

right_type

The data type of the operators right operand; write NONE if the operator has no right operand.

new_owner

The new owner of the operator.

new_schema

The new schema for the operator.

EXAMPLES

Change the owner of a custom operator a @@ b for type text:

ALTER OPERATOR @@ (text, text) OWNER TO joe;

COMPATIBILITY

There is no ALTER OPERATOR statement in the SQL standard.

SEE ALSO

CREATE OPERATOR (CREATE_OPERATOR(7)), DROP OPERATOR (DROP_OPERATOR(7))
Search for    or go to Top of page |  Section 7 |  Main Index


PostgreSQL 9.5.2 ALTER OPERATOR (7) 2016

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.