From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Remove support for version-0 calling conventions.
Date: Thu, 30 Mar 2017 13:30:39 +0000
Message-ID: <E1cta9v-0003Lc-SM@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de
Subject: Re: pgsql: Remove support for version-0 calling conventions.
In-Reply-To: <E1cta9v-0003Lc-SM@gemulon.postgresql.org>
References: <E1cta9v-0003Lc-SM@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox