Remove the obsolete WITH clause of CREATE FUNCTION.
Tom Lane <tgl@sss.pgh.pa.us>
Remove the obsolete WITH clause of CREATE FUNCTION. This clause was superseded by SQL-standard syntax back in 7.3. We've kept it around for backwards-compatibility purposes ever since; but 15 years seems like long enough for that, especially seeing that there are undocumented weirdnesses in how it interacts with the SQL-standard syntax for specifying the same options. Michael Paquier, per an observation by Daniel Gustafsson; some small cosmetic adjustments to nearby code by me. Discussion: https://postgr.es/m/20180115022748.GB1724@paquier.xyz
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_function.sgml | modified | +0 −36 |
| src/backend/commands/functioncmds.c | modified | +27 −82 |
| src/backend/nodes/copyfuncs.c | modified | +2 −3 |
| src/backend/nodes/equalfuncs.c | modified | +1 −2 |
| src/backend/parser/gram.y | modified | +7 −7 |
| src/include/nodes/parsenodes.h | modified | +1 −2 |
Documentation touched
Discussion
- Removing WITH clause support in CREATE FUNCTION, for isCachable and isStrict 7 messages · 2018-01-15 → 2018-01-26