1ALTER OPERATOR(7)       PostgreSQL 9.2.24 Documentation      ALTER OPERATOR(7)
2
3
4

NAME

6       ALTER_OPERATOR - change the definition of an operator
7

SYNOPSIS

9       ALTER OPERATOR name ( { left_type | NONE } , { right_type | NONE } ) OWNER TO new_owner
10       ALTER OPERATOR name ( { left_type | NONE } , { right_type | NONE } ) SET SCHEMA new_schema
11

DESCRIPTION

13       ALTER OPERATOR changes the definition of an operator. The only
14       currently available functionality is to change the owner of the
15       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
26           The name (optionally schema-qualified) of an existing operator.
27
28       left_type
29           The data type of the operator's left operand; write NONE if the
30           operator has no left operand.
31
32       right_type
33           The data type of the operator's right operand; write NONE if the
34           operator has no right operand.
35
36       new_owner
37           The new owner of the operator.
38
39       new_schema
40           The new schema for the operator.
41

EXAMPLES

43       Change the owner of a custom operator a @@ b for type text:
44
45           ALTER OPERATOR @@ (text, text) OWNER TO joe;
46

COMPATIBILITY

48       There is no ALTER OPERATOR statement in the SQL standard.
49

SEE ALSO

51       CREATE OPERATOR (CREATE_OPERATOR(7)), DROP OPERATOR (DROP_OPERATOR(7))
52
53
54
55PostgreSQL 9.2.24                 2017-11-06                 ALTER OPERATOR(7)
Impressum