forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6ca547c
committed
Mark factorial operator, and postfix operators in general, as deprecated.
Per discussion, we're planning to remove parser support for postfixoperators in order to simplify the grammar. So it behooves us toput 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 adjustsome examples that formerly relied on it. (The sister prefixoperator !! is also deprecated. We don't really have to removethat 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 operatorsin 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-patch4c5cf54, so that there's someplace forthe <link>s to point to.Mark Dilger and John Naylor, with some adjustments by meDiscussion:https://postgr.es/m/BE2DF53D-251A-4E26-972F-930E523580E9@enterprisedb.com1 parent3d351d9 commit6ca547c
File tree
6 files changed
+25
-35
lines changed- doc/src/sgml
- ref
- src/include/catalog
6 files changed
+25
-35
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1055 | 1055 |
| |
1056 | 1056 |
| |
1057 | 1057 |
| |
| 1058 | + | |
1058 | 1059 |
| |
1059 | 1060 |
| |
1060 | 1061 |
| |
| |||
1068 | 1069 |
| |
1069 | 1070 |
| |
1070 | 1071 |
| |
1071 |
| - | |
| 1072 | + | |
| 1073 | + | |
1072 | 1074 |
| |
1073 | 1075 |
| |
1074 | 1076 |
| |
| |||
1349 | 1351 |
| |
1350 | 1352 |
| |
1351 | 1353 |
| |
1352 |
| - | |
| 1354 | + | |
1353 | 1355 |
| |
1354 | 1356 |
| |
1355 | 1357 |
| |
|
Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
| 90 | + | |
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
95 | 102 |
| |
96 | 103 |
| |
97 | 104 |
| |
|
Lines changed: 2 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
977 | 977 |
| |
978 | 978 |
| |
979 | 979 |
| |
980 |
| - | |
981 |
| - | |
982 |
| - | |
983 |
| - | |
984 |
| - | |
985 |
| - | |
986 |
| - | |
987 |
| - | |
988 |
| - | |
989 |
| - | |
990 |
| - | |
991 |
| - | |
992 |
| - | |
993 |
| - | |
994 |
| - | |
995 |
| - | |
996 |
| - | |
997 |
| - | |
998 |
| - | |
999 |
| - | |
1000 |
| - | |
| 980 | + | |
| 981 | + | |
1001 | 982 |
| |
1002 | 983 |
| |
1003 | 984 |
| |
|
Lines changed: 8 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
354 | 354 |
| |
355 | 355 |
| |
356 | 356 |
| |
357 |
| - | |
| 357 | + | |
358 | 358 |
| |
359 | 359 |
| |
360 |
| - | |
| 360 | + | |
361 | 361 |
| |
362 |
| - | |
| 362 | + | |
363 | 363 |
| |
364 | 364 |
| |
365 | 365 |
| |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
370 |
| - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
371 | 370 |
| |
372 | 371 |
| |
373 | 372 |
| |
374 | 373 |
| |
375 | 374 |
| |
376 | 375 |
| |
377 | 376 |
| |
378 |
| - | |
| 377 | + | |
379 | 378 |
| |
380 | 379 |
| |
381 | 380 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
218 | 218 |
| |
219 | 219 |
| |
220 | 220 |
| |
221 |
| - | |
| 221 | + | |
222 | 222 |
| |
223 | 223 |
| |
224 |
| - | |
| 224 | + | |
225 | 225 |
| |
226 | 226 |
| |
227 | 227 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
328 | 328 |
| |
329 | 329 |
| |
330 | 330 |
| |
| 331 | + | |
331 | 332 |
| |
332 | 333 |
| |
333 | 334 |
| |
|
0 commit comments
Comments
(0)