]> granicus.if.org Git - postgresql/commit
Remove the obsolete WITH clause of CREATE FUNCTION.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2018 17:25:44 +0000 (12:25 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2018 17:25:44 +0000 (12:25 -0500)
commit4971d2a32209118ebbdc6611341b89901e340902
tree8b59a637faaf915b2859db938e77bdabdbf3aa65
parentb0313f9cc8f54d6a5c12f8987c9b6afa0a5bbced
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
doc/src/sgml/ref/create_function.sgml
src/backend/commands/functioncmds.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/include/nodes/parsenodes.h