From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Noah Misch <noah@leadboat.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] Re: pgsql: Convert contrib/seg's bool-returning SQL functions to V1 call co
Date: Wed, 27 Apr 2016 09:53:46 -0400
Message-ID: <25024.1461765226@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZArfk3gRDPhCo=5L4CcEmMiSKQAcY384P2p61O_um4Cw@mail.gmail.com>
References: <E1atdPs-0005zu-Re@gemulon.postgresql.org>
<20160427023828.GA2150695@tornado.leadboat.com>
<20160427024415.6mv2dtyifpkv7g6v@alap3.anarazel.de>
<5393.1461725984@sss.pgh.pa.us>
<CA+TgmoZArfk3gRDPhCo=5L4CcEmMiSKQAcY384P2p61O_um4Cw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Robert Haas <robertmhaas@gmail.com> writes:
> Let's add a GUC allow_oldstyle_functions with a default of off, and
> make fetch_finfo_record() throw an ERROR in the infofunc == NULL case
> unless allow_oldstyle_functions = on.
This is not about "V0 calling convention is awful". It isn't, really,
unless you need to deal with nulls. This is about "allowing the finfo
record to be missing is error-prone". What about inventing a
PG_FUNCTION_INFO_V0() macro, and then defining the new GUC as "must
find a matching finfo record"? That would present less conversion
work for people who still have V0-style functions (and I'm sure there
are more than a few of them out there).
Now, if VS2015 actually has broken bool-returning V0, the argument for
keeping it going becomes a lot weaker. But at this point I suspect
strongly that that's not what happened but rather we've got a faulty
bool cast there, which if true is something we need to fix regardless
of any considerations about V0. Would someone please try the experiment
requested upthread?
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, andres@anarazel.de, noah@leadboat.com, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] Re: pgsql: Convert contrib/seg's bool-returning SQL functions to V1 call co
In-Reply-To: <25024.1461765226@sss.pgh.pa.us>
References: <E1atdPs-0005zu-Re@gemulon.postgresql.org> <20160427023828.GA2150695@tornado.leadboat.com> <20160427024415.6mv2dtyifpkv7g6v@alap3.anarazel.de> <5393.1461725984@sss.pgh.pa.us> <CA+TgmoZArfk3gRDPhCo=5L4CcEmMiSKQAcY384P2p61O_um4Cw@mail.gmail.com> <25024.1461765226@sss.pgh.pa.us>
* 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