Remove support for version-0 calling conventions.
authorAndres Freund <andres@anarazel.de>
Wed, 29 Mar 2017 20:16:49 +0000 (13:16 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 30 Mar 2017 13:25:46 +0000 (06:25 -0700)
commit5ded4bd21403e143dd3eb66b92d52732fdac1945
treee0ec55a8afd221282172fd36783ada06840c0134
parent389bb2818f404d5b967f21e1ac4f987f894e94bb
Remove support for version-0 calling conventions.

The V0 convention is failure prone because we've so far assumed that a
function is V0 if PG_FUNCTION_INFO_V1 is missing, leading to crashes
if a function was coded against the V1 interface.  V0 doesn't allow
proper NULL, SRF and toast handling.  V0 doesn't offer features that
V1 doesn't.

Thus remove V0 support and obsolete fmgr README contents relating to
it.

Author: Andres Freund, with contributions by Peter Eisentraut & Craig Ringer
Reviewed-By: Peter Eisentraut, Craig Ringer
Discussion: https://postgr.es/m/20161208213441.k3mbno4twhg2qf7g@alap3.anarazel.de
contrib/earthdistance/earthdistance.c
doc/src/sgml/xfunc.sgml
src/backend/utils/fmgr/README
src/backend/utils/fmgr/fmgr.c
src/include/fmgr.h
src/test/regress/input/create_function_2.source
src/test/regress/input/misc.source
src/test/regress/output/create_function_2.source
src/test/regress/output/misc.source
src/test/regress/regress.c