Deprecating postfix and factorial operators in PostgreSQL 13
Mark Dilger <mark.dilger@enterprisedb.com>
From: Mark Dilger <mark.dilger@enterprisedb.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Robert Haas <robertmhaas@gmail.com>,
Tom Lane <tgl@sss.pgh.pa.us>,
John Naylor <john.naylor@2ndquadrant.com>,
Vik Fearing <vik@postgresfriends.org>,
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Date: 2020-08-27T16:13:49Z
Lists: pgsql-hackers
Attachments
- v1-0001-Adding-deprecation-notices.patch (application/octet-stream) patch v1-0001
- (unnamed) (text/plain)
Hackers, Over in [1] we have been discussing the deprecation of postfix operators, with the general consensus that deprecation warnings should be included in this upcoming release and postfix operator support should be removed in PostgreSQL 14. Since not all people who follow -hackers will necessarily have been following that thread, I am creating this new thread, with a patch which adds the deprecation notices, for your consideration. The only postfix operator we ship in the standard catalogs is the factorial operator (!), which is deprecated by this patch. The standard catalogs also include a prefix factorial operator (!!) which has been deprecated since 2011. The deprecation warnings included in this patch warn that postfix operator support, along with both postfix ! and prefix !! factorial operators, will be removed in PostgreSQL 14. Some of the deprecation verbiage supplied by John Naylor, some by me:
Commits
-
Mark factorial operator, and postfix operators in general, as deprecated.
- cc8a71e93084 9.5.24 landed
- d1ee6ce4c9ff 11.10 landed
- 9dee85b5b833 12.5 landed
- 1f38d3851190 10.15 landed
- 1ce20826ce80 9.6.20 landed
- 845cfe012fd1 13.0 landed
- 6ca547cf75ef 14.0 landed