1ALTER OPERATOR()                 SQL Commands                 ALTER OPERATOR()
2
3
4

NAME

6       ALTER OPERATOR - change the definition of an operator
7
8

SYNOPSIS

10       ALTER OPERATOR name ( { lefttype | NONE } , { righttype | NONE } ) OWNER TO newowner
11
12

DESCRIPTION

14       ALTER  OPERATOR  changes  the  definition of an operator. The only cur‐
15       rently available functionality is to change the owner of the operator.
16
17       You must own the operator to use ALTER OPERATOR.  To alter  the  owner,
18       you  must  also  be a direct or indirect member of the new owning role,
19       and that role must have CREATE  privilege  on  the  operator's  schema.
20       (These restrictions enforce that altering the owner doesn't do anything
21       you couldn't do by dropping and recreating the  operator.   However,  a
22       superuser can alter ownership of any operator anyway.)
23

PARAMETERS

25       name   The name (optionally schema-qualified) of an existing operator.
26
27       lefttype
28              The  data type of the operator's left operand; write NONE if the
29              operator has no left operand.
30
31       righttype
32              The data type of the operator's right operand; write NONE if the
33              operator has no right operand.
34
35       newowner
36              The new owner of the operator.
37

EXAMPLES

39       Change the owner of a custom operator a @@ b for type text:
40
41       ALTER OPERATOR @@ (text, text) OWNER TO joe;
42
43

COMPATIBILITY

45       There is no ALTER OPERATOR statement in the SQL standard.
46

SEE ALSO

48       CREATE OPERATOR [create_operator(7)], DROP OPERATOR [drop_operator(l)]
49
50
51
52SQL - Language Statements         2008-06-08                  ALTER OPERATOR()
Impressum