Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avPud-0003We-Gi for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2016 13:53:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1avPub-0000vV-Ul for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2016 13:53:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1avPua-0000u7-SX for pgsql-hackers@postgresql.org; Wed, 27 Apr 2016 13:53:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1avPuY-0001vp-FE for pgsql-hackers@postgresql.org; Wed, 27 Apr 2016 13:53:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u3RDrk7r025025; Wed, 27 Apr 2016 09:53:46 -0400 From: Tom Lane To: Robert Haas cc: Andres Freund , Noah Misch , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] Re: pgsql: Convert contrib/seg's bool-returning SQL functions to V1 call co In-reply-to: References: <20160427023828.GA2150695@tornado.leadboat.com> <20160427024415.6mv2dtyifpkv7g6v@alap3.anarazel.de> <5393.1461725984@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 27 Apr 2016 08:10:32 -0400" Date: Wed, 27 Apr 2016 09:53:46 -0400 Message-ID: <25024.1461765226@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas 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