From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Mark factorial operator, and postfix operators in general, as de
Date: Sun, 30 Aug 2020 18:37:35 +0000
Message-ID: <E1kCSCt-000714-W9@gemulon.postgresql.org> (raw)
Mark factorial operator, and postfix operators in general, as deprecated.
Per discussion, we're planning to remove parser support for postfix
operators in order to simplify the grammar. So it behooves us to
put out a deprecation notice at least one release before that.
There is only one built-in postfix operator, ! for factorial.
Label it deprecated in the docs and in pg_description, and adjust
some examples that formerly relied on it. (The sister prefix
operator !! is also deprecated. We don't really have to remove
that one, but since we're suggesting that people use factorial()
instead, it seems better to remove both operators.)
Also state in the CREATE OPERATOR ref page that postfix operators
in general are going away.
Although this changes the initial contents of pg_description,
I did not force a catversion bump; it doesn't seem essential.
In v13, also back-patch 4c5cf5431, so that there's someplace for
the <link>s to point to.
Mark Dilger and John Naylor, with some adjustments by me
Discussion: https://postgr.es/m/BE2DF53D-251A-4E26-972F-930E523580E9@enterprisedb.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6ca547cf75ef6e922476c51a3fb5e253eef5f1b6
Modified Files
--------------
doc/src/sgml/func.sgml | 6 ++++--
doc/src/sgml/ref/create_operator.sgml | 9 ++++++++-
doc/src/sgml/syntax.sgml | 23 ++---------------------
doc/src/sgml/typeconv.sgml | 17 ++++++++---------
src/include/catalog/pg_operator.dat | 4 ++--
src/include/catalog/pg_proc.dat | 1 +
6 files changed, 25 insertions(+), 35 deletions(-)
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: Mark factorial operator, and postfix operators in general, as de
In-Reply-To: <E1kCSCt-000714-W9@gemulon.postgresql.org>
References: <E1kCSCt-000714-W9@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