From: Peter Eisentraut Date: Mon, 15 Jun 2020 06:51:46 +0000 (+0200) Subject: doc: Document factorial function X-Git-Tag: REL_14_BETA1~2135 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=4c5cf5431;p=postgresql.git doc: Document factorial function This has existed for a very long time, equivalent to the ! and !! operators, but it was never documented. Reviewed-by: Tom Lane Discussion: https://www.postgresql.org/message-id/flat/6ce1df0e-86a3-e544-743a-f357ff663f68%402ndquadrant.com --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index b65aa28f344..9d71678029e 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1347,6 +1347,23 @@ repeat('Pg', 4) PgPgPgPg + + + + factorial + + factorial ( bigint ) + numeric + + + Factorial + + + factorial(5) + 120 + + +