pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove factorial operators, leaving only the factorial() functio
Date: Thu, 17 Sep 2020 20:17:40 +0000
Message-ID: <E1kJ0Lc-0007kT-Bk@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/76f412ab310554acb970a0b73c8d1f37f35548c6

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out |  8 -------
contrib/postgres_fdw/sql/postgres_fdw.sql      |  1 -
doc/src/sgml/func.sgml                         | 30 --------------------------
src/include/catalog/catversion.h               |  3 +--
src/include/catalog/pg_operator.dat            |  6 ------
src/include/catalog/pg_proc.dat                |  4 ----
src/test/regress/expected/create_operator.out  | 20 ++++++++---------
src/test/regress/expected/numeric.out          | 26 ++++++++--------------
src/test/regress/sql/create_operator.sql       | 20 ++++++++---------
src/test/regress/sql/numeric.sql               |  8 +++----
10 files changed, 33 insertions(+), 93 deletions(-)



Message-ID: <E1kJ0Lc-0007kT-Bk@gemulon.postgresql.org>
Permalink:  ../E1kJ0Lc-0007kT-Bk@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kJ0Lc-0007kT-Bk@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Remove factorial operators, leaving only the factorial() functio
  In-Reply-To: <E1kJ0Lc-0007kT-Bk@gemulon.postgresql.org>
  References: <E1kJ0Lc-0007kT-Bk@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox