From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Amit Kapila <amit.kapila16@gmail.com>
To: Noah Misch <noah@leadboat.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ashutosh Sharma <ashu.coek88@gmail.com>
Cc: Dave Page <dpage@pgadmin.org>
Cc: Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: pl/perl extension fails on Windows
Date: Tue, 25 Jul 2017 10:37:50 -0400
Message-ID: <21dc1689-94e9-7af7-e8a2-c78b0563fff6@2ndQuadrant.com> (raw)
In-Reply-To: <CAA4eK1JGuf+UZcAB33TwEE-7aZZpNx-PPc=wjjgZVrr8ivFa+g@mail.gmail.com>
References: <6063dd4c-cd1e-d9d8-fa0d-3bddb1403c66@2ndQuadrant.com>
<CAE9k0PkWhEeNS4b5bnoQLeZsnqe4zqkr=4GhN2Ybt1nSsBFk2g@mail.gmail.com>
<184f1fb9-dfa2-ef2d-024b-7933486e018a@2ndQuadrant.com>
<16093.1499956602@sss.pgh.pa.us>
<bb3d3eb6-e310-471c-1d8c-d239ecaf52ad@2ndQuadrant.com>
<7480.1499965218@sss.pgh.pa.us>
<CAE9k0Pnvw63MLR=dT1NYdL_t_ptyFqW1ueJwixcsmobadpFWng@mail.gmail.com>
<30585.1500480763@sss.pgh.pa.us>
<CAE9k0PnQzRRYEGy1j51D6F-fZeHWoy2GAghewBORWNjwg44y5g@mail.gmail.com>
<32468.1500498091@sss.pgh.pa.us>
<20170724062838.GB2284350@rfd.leadboat.com>
<CAA4eK1JGuf+UZcAB33TwEE-7aZZpNx-PPc=wjjgZVrr8ivFa+g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 07/25/2017 08:58 AM, Amit Kapila wrote:
>
> I think the real question is where do we go from here. Ashutosh has
> proposed a patch up-thread based on a suggestion from Andrew, but it
> is not clear if we want to go there as that seems to be bypassing
> handshake mechanism. The other tests and analysis seem to indicate
> that the new version Perl binaries on Windows are getting built with
> flags that are incompatible with what we use for plperl and it is not
> clear why perl is using those flags. Do you think we can do something
> at our end to make it work or someone should check with Perl community
> about it?
>
No amount of checking with the Perl community is likely to resolve this
quickly w.r.t. existing releases of Perl.
We seem to have a choice either to abandon, at least temporarily, perl
support on Windows for versions of perl >= 5.20 (I think) or adopt the
suggestion I made. It's not a complete hack - it's something at least
somewhat blessed in perl's XSUB.h:
/* dXSBOOTARGSNOVERCHK has no API in xsubpp to choose it so do
#undef dXSBOOTARGSXSAPIVERCHK
#define dXSBOOTARGSXSAPIVERCHK dXSBOOTARGSNOVERCHK */
Note that on earlier versions of perl we got by without this check for
years without any issue or complaint I recall hearing of. If we don't
adopt this I would not be at all surprised to see Windows packagers
adopt it anyway.
cheers
andrew
--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
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: andrew.dunstan@2ndquadrant.com, amit.kapila16@gmail.com, noah@leadboat.com, tgl@sss.pgh.pa.us, ashu.coek88@gmail.com, dpage@pgadmin.org, sandeep.thakkar@enterprisedb.com
Subject: Re: pl/perl extension fails on Windows
In-Reply-To: <21dc1689-94e9-7af7-e8a2-c78b0563fff6@2ndQuadrant.com>
References: <6063dd4c-cd1e-d9d8-fa0d-3bddb1403c66@2ndQuadrant.com> <CAE9k0PkWhEeNS4b5bnoQLeZsnqe4zqkr=4GhN2Ybt1nSsBFk2g@mail.gmail.com> <184f1fb9-dfa2-ef2d-024b-7933486e018a@2ndQuadrant.com> <16093.1499956602@sss.pgh.pa.us> <bb3d3eb6-e310-471c-1d8c-d239ecaf52ad@2ndQuadrant.com> <7480.1499965218@sss.pgh.pa.us> <CAE9k0Pnvw63MLR=dT1NYdL_t_ptyFqW1ueJwixcsmobadpFWng@mail.gmail.com> <30585.1500480763@sss.pgh.pa.us> <CAE9k0PnQzRRYEGy1j51D6F-fZeHWoy2GAghewBORWNjwg44y5g@mail.gmail.com> <32468.1500498091@sss.pgh.pa.us> <20170724062838.GB2284350@rfd.leadboat.com> <CAA4eK1JGuf+UZcAB33TwEE-7aZZpNx-PPc=wjjgZVrr8ivFa+g@mail.gmail.com> <21dc1689-94e9-7af7-e8a2-c78b0563fff6@2ndQuadrant.com>
* 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