diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 094b0df7fc4..9d34bc0282c 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -524,14 +524,16 @@ ! - factorial + factorial + (deprecated, use factorial() instead) 5 ! 120 !! - factorial (prefix operator) + factorial as a prefix operator + (deprecated, use factorial() instead) !! 5 120 @@ -714,6 +716,19 @@ 2.71828182845905 + + + + factorial + + factorial(bigint) + + numeric + factorial + factorial(5) + 120 + + diff --git a/doc/src/sgml/ref/create_operator.sgml b/doc/src/sgml/ref/create_operator.sgml index 818e3a2315a..73ccac7fecf 100644 --- a/doc/src/sgml/ref/create_operator.sgml +++ b/doc/src/sgml/ref/create_operator.sgml @@ -87,11 +87,18 @@ CREATE OPERATOR name ( At least one of LEFTARG and RIGHTARG must be defined. For - binary operators, both must be defined. For right unary + binary operators, both must be defined. For right unary operators, only LEFTARG should be defined, while for left unary operators only RIGHTARG should be defined. + + + Right unary, also called postfix, operators are deprecated and will be + removed in PostgreSQL version 14. + + + The function_name procedure must have been previously defined using CREATE