Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1atSlf-00032Q-MG for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Apr 2016 04:32:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1atSlf-0008Np-9H for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Apr 2016 04:32:35 +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 1atSkI-0006Cw-Eo for pgsql-hackers@postgresql.org; Fri, 22 Apr 2016 04:31:10 +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 1atSkB-0005Yh-AH for pgsql-hackers@postgresql.org; Fri, 22 Apr 2016 04:31:09 +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 u3M4UvXS004035; Fri, 22 Apr 2016 00:30:57 -0400 From: Tom Lane To: Andrew Dunstan cc: Michael Paquier , Petr Jelinek , Christian Ullrich , Robert Haas , Magnus Hagander , PostgreSQL mailing lists Subject: Re: VS 2015 support in src/tools/msvc In-reply-to: <57199FBF.4070706@dunslane.net> References: <5705768E.4020908@dunslane.net> <5706FB7E.5070703@dunslane.net> <570792ED.2080003@chrullrich.net> <5707AC9E.7070309@dunslane.net> <5707C80F.9050709@chrullrich.net> <5707D7DC.2030508@dunslane.net> <5707E074.4030102@chrullrich.net> <0B77CFCB-0F90-4CAB-8509-7EB391C06D59@chrullrich.net> <570A6A14.6040303@dunslane.net> <570A9FCE.5040201@chrullrich.net> <570ABFA0.4090403@2ndquadrant.com> <57192C5! 9.9090903@dunslane.net> <22094.1461273324@sss.pgh.pa.us> <57199FBF.4070706@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Thu, 21 Apr 2016 23:51:27 -0400" Date: Fri, 22 Apr 2016 00:30:56 -0400 Message-ID: <4034.1461299456@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 Andrew Dunstan writes: > On 04/21/2016 05:15 PM, Tom Lane wrote: >> Do the other contrib modules all pass? I can't recall if seg was the >> only one we'd left like this. > Only seg fails. As a crosscheck, I put some code into fmgr_c_validator() to log a message when creating a V0 function with a pass-by-val return type. (Pass-by-ref is no problem, according to my hypothesis, since it necessarily means the C function returns a pointer.) I get these hits in core + contrib regression tests: core: LOG: version-0 function widget_in returns type widget LOG: version-0 function oldstyle_length returns type integer contrib: LOG: version-0 function seg_over_left returns type boolean LOG: version-0 function seg_over_right returns type boolean LOG: version-0 function seg_left returns type boolean LOG: version-0 function seg_right returns type boolean LOG: version-0 function seg_lt returns type boolean LOG: version-0 function seg_le returns type boolean LOG: version-0 function seg_gt returns type boolean LOG: version-0 function seg_ge returns type boolean LOG: version-0 function seg_contains returns type boolean LOG: version-0 function seg_contained returns type boolean LOG: version-0 function seg_overlap returns type boolean LOG: version-0 function seg_same returns type boolean LOG: version-0 function seg_different returns type boolean LOG: version-0 function seg_cmp returns type integer LOG: version-0 function gseg_consistent returns type boolean LOG: version-0 function gseg_compress returns type internal LOG: version-0 function gseg_decompress returns type internal LOG: version-0 function gseg_penalty returns type internal LOG: version-0 function gseg_picksplit returns type internal LOG: version-0 function gseg_same returns type internal The widget_in gripe is a false positive, caused by the fact that we don't know the properties of type widget when widget_in is declared. We also need not worry about the functions that return "internal", since that's defined to be pointer-sized. If we assume that oldstyle functions returning integer are still okay, which the success of the regression test case involving oldstyle_length() seems to prove, then indeed seg's bool-returning functions are the only hazard. Note though that this test fails to cover any contrib modules that lack regression tests, since they wouldn't have gotten loaded by "make installcheck". 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