Operators

operators are declared in the system catalog pg_operator

  • Every entry in pg_operator includes the name of the procedure that implements the operator and the class OIDs of the input and output types.

To view all variations of the “||” string concatenation operator, try:

SELECT oprleft, oprright, oprresult, oprcode
FROM pg_operator WHERE oprname = '||';

oprleft|oprright|oprresult|oprcode
-------+--------+---------+-------
     25|      25|       25|textcat
   1042|    1042|     1042|textcat
   1043|    1043|     1043|textcat
(3 rows)

Children
  1. Any
  2. Except
  3. Intersect
  4. Union