postgresql_16:7.1.70.2 Parameters
PostgreSQL 16 > Reference > SQL Commands > CREATE OPERATOR > Parameters
*name*
The name of the operator to be defined. See above for allowable characters. The name can be schema-qualified, for example CREATE OPERATOR myschema.+ (...). If not, then the operator is created in the current schema. Two operators in the same schema can have the same name if they operate on different data types. This is called *overloading*.
*function_name*
The function used to implement this operator.
*left_type*
The data type of the operator's left operand, if any. This option would be omitted for a prefix operator.
*right_type*
The data type of the operator's right operand.
*com_op*
The commutator of this operator.
*neg_op*
The negator of this operator.
*res_proc*
The restriction selectivity estimator function for this operator.
*join_proc*
The join selectivity estimator function for this operator.
HASHES
Indicates this operator can support a hash join.
MERGES
Indicates this operator can support a merge join.
To give a schema-qualified operator name in *com_op* or the other optional arguments, use the OPERATOR() syntax, for example: COMMUTATOR = OPERATOR(myschema.===) ,