Remove factorial operators, leaving only the factorial() function.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Sep 2020 20:17:27 +0000 (16:17 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Sep 2020 20:17:27 +0000 (16:17 -0400)
commit76f412ab310554acb970a0b73c8d1f37f35548c6
treefa3d1f126c4d1e3dd54d090d473e53305c232604
parent74d4608f506ba423e4c84609c1c0e03e1e92cb91
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
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/sql/postgres_fdw.sql
doc/src/sgml/func.sgml
src/include/catalog/catversion.h
src/include/catalog/pg_operator.dat
src/include/catalog/pg_proc.dat
src/test/regress/expected/create_operator.out
src/test/regress/expected/numeric.out
src/test/regress/sql/create_operator.sql
src/test/regress/sql/numeric.sql