pgsql: Remove support for version-0 calling conventions. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Remove support for version-0 calling conventions.
Date
Msg-id E1cta9v-0003Lc-SM@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5ded4bd21403e143dd3eb66b92d52732fdac1945

Modified Files
--------------
contrib/earthdistance/earthdistance.c            |  22 --
doc/src/sgml/xfunc.sgml                          | 269 ++++------------
src/backend/utils/fmgr/README                    | 254 +--------------
src/backend/utils/fmgr/fmgr.c                    | 377 +----------------------
src/include/fmgr.h                               |   8 +-
src/test/regress/input/create_function_2.source  |   5 -
src/test/regress/input/misc.source               |  13 -
src/test/regress/output/create_function_2.source |   4 -
src/test/regress/output/misc.source              |  18 --
src/test/regress/regress.c                       |  47 ++-
10 files changed, 106 insertions(+), 911 deletions(-)


pgsql-committers by date:

Previous
From: Teodor Sigaev
Date:
Subject: pgsql: Implement SortSupport for macaddr data type
Next
From: Fujii Masao
Date:
Subject: pgsql: Simplify the example of VACUUM in documentation.