aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-09-17 16:17:27 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-09-17 16:17:27 -0400
commit76f412ab310554acb970a0b73c8d1f37f35548c6 (patch)
treefa3d1f126c4d1e3dd54d090d473e53305c232604 /doc/src
parent74d4608f506ba423e4c84609c1c0e03e1e92cb91 (diff)
downloadpostgresql-76f412ab310554acb970a0b73c8d1f37f35548c6.tar.gz
postgresql-76f412ab310554acb970a0b73c8d1f37f35548c6.zip
Remove factorial operators, leaving only the factorial() function.
The "!" operator is our only built-in postfix operator. Remove it, on the way to removal of grammar support for postfix operators. There is also a "!!" prefix operator, but since it's been marked deprecated for most of its existence, we might as well remove it too. Also zap the SQL alias function numeric_fac(), which seems to have equally little reason to live. Mark Dilger, based on work by myself and Robert Haas; review by John Naylor Discussion: https://postgr.es/m/38ca86db-42ab-9b48-2902-337a0d6b8311@2ndquadrant.com
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml30
1 files changed, 0 insertions, 30 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index e2e618791ee..d6283a35d84 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -1050,36 +1050,6 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
<row>
<entry role="func_table_entry"><para role="func_signature">
- <type>bigint</type> <literal>!</literal>
- <returnvalue>numeric</returnvalue>
- </para>
- <para>
- Factorial
- (deprecated, use <link linkend="function-factorial"><function>factorial()</function></link> instead)
- </para>
- <para>
- <literal>5 !</literal>
- <returnvalue>120</returnvalue>
- </para></entry>
- </row>
-
- <row>
- <entry role="func_table_entry"><para role="func_signature">
- <literal>!!</literal> <type>bigint</type>
- <returnvalue>numeric</returnvalue>
- </para>
- <para>
- Factorial as a prefix operator
- (deprecated, use <link linkend="function-factorial"><function>factorial()</function></link> instead)
- </para>
- <para>
- <literal>!! 5</literal>
- <returnvalue>120</returnvalue>
- </para></entry>
- </row>
-
- <row>
- <entry role="func_table_entry"><para role="func_signature">
<literal>@</literal> <replaceable>numeric_type</replaceable>
<returnvalue><replaceable>numeric_type</replaceable></returnvalue>
</para>