From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Petr Jelinek <petr@2ndquadrant.com>
Cc: Christian Ullrich <chris@chrullrich.net>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: VS 2015 support in src/tools/msvc
Date: Fri, 22 Apr 2016 00:30:56 -0400
Message-ID: <4034.1461299456@sss.pgh.pa.us> (raw)
In-Reply-To: <57199FBF.4070706@dunslane.net>
References: <CAB7nPqTTcRGbDxS_RA4CWn1B_KRsvN+FTpct0mTp3v3gRWQ70g@mail.gmail.com>
<5705768E.4020908@dunslane.net>
<5706FB7E.5070703@dunslane.net>
<CAB7nPqR4QHFRZ1vjMo9Njy49hDAXOAjO+AEGhuCDzmhQJRagAw@mail.gmail.com>
<570792ED.2080003@chrullrich.net>
<5707AC9E.7070309@dunslane.net>
<CAB7nPqROXyB_=-BbAXGnCdHFYUE4_+qgQAGk1swwnVQSfiab9Q@mail.gmail.com>
<5707C80F.9050709@chrullrich.net>
<5707D7DC.2030508@dunslane.net>
<5707E074.4030102@chrullrich.net>
<CAB7nPqSYAxCX+p0D0Qpqv6D4uLb2fmGcpUeKRxMyom5cAziuzg@mail.gmail.com>
<CAB7nPqSOPynjV7ZC9wghkvwTpDPj7U=py7AoczzguTmv1kmh+g@mail.gmail.com>
<0B77CFCB-0F90-4CAB-8509-7EB391C06D59@chrullrich.net>
<570A6A14.6040303@dunslane.net>
<570A9FCE.5040201@chrullrich.net>
<570ABFA0.4090403@2ndquadrant.com>
<CAB7nPqRek6M6HKpNXiNHx0J+rzC0XUbuZ5EMGvHSxLuZsebtyg@mail.gmail.com>
<CAB7nPqRNwNXQ6C_1kODE5kN0WQUqLuWtPdLD4rn5nGmJUiibLw@mail.gmail.com>
<57192C5! 9.9090903@dunslane.net>
<22094.1461273324@sss.pgh.pa.us>
<57199FBF.4070706@dunslane.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Andrew Dunstan <andrew@dunslane.net> 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
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andrew@dunslane.net, michael.paquier@gmail.com, petr@2ndquadrant.com, chris@chrullrich.net, robertmhaas@gmail.com, magnus@hagander.net
Subject: Re: VS 2015 support in src/tools/msvc
In-Reply-To: <4034.1461299456@sss.pgh.pa.us>
References: <CAB7nPqTTcRGbDxS_RA4CWn1B_KRsvN+FTpct0mTp3v3gRWQ70g@mail.gmail.com> <5705768E.4020908@dunslane.net> <5706FB7E.5070703@dunslane.net> <CAB7nPqR4QHFRZ1vjMo9Njy49hDAXOAjO+AEGhuCDzmhQJRagAw@mail.gmail.com> <570792ED.2080003@chrullrich.net> <5707AC9E.7070309@dunslane.net> <CAB7nPqROXyB_=-BbAXGnCdHFYUE4_+qgQAGk1swwnVQSfiab9Q@mail.gmail.com> <5707C80F.9050709@chrullrich.net> <5707D7DC.2030508@dunslane.net> <5707E074.4030102@chrullrich.net> <CAB7nPqSYAxCX+p0D0Qpqv6D4uLb2fmGcpUeKRxMyom5cAziuzg@mail.gmail.com> <CAB7nPqSOPynjV7ZC9wghkvwTpDPj7U=py7AoczzguTmv1kmh+g@mail.gmail.com> <0B77CFCB-0F90-4CAB-8509-7EB391C06D59@chrullrich.net> <570A6A14.6040303@dunslane.net> <570A9FCE.5040201@chrullrich.net> <570ABFA0.4090403@2ndquadrant.com> <CAB7nPqRek6M6HKpNXiNHx0J+rzC0XUbuZ5EMGvHSxLuZsebtyg@mail.gmail.com> <CAB7nPqRNwNXQ6C_1kODE5kN0WQUqLuWtPdLD4rn5nGmJUiibLw@mail.gmail.com> <22094.1461273324@sss.pgh.pa.us> <57199FBF.4070706@dunslane.net> <4034.1461299456@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