Re: [COMMITTERS] pgsql: Fix and simplify check for whether we're running as Windows serv

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dave Page <dpage(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Fix and simplify check for whether we're running as Windows serv
Date: 2017-03-22 10:48:48
Message-ID: ca12b39d-e3da-a270-86c1-43c1d6c9ad5a@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 03/19/2017 11:40 PM, Tom Lane wrote:
> Heikki Linnakangas <hlinnaka(at)iki(dot)fi> writes:
>> On 03/17/2017 07:57 PM, Tom Lane wrote:
>>> This seems to have broken narwhal:
>
>> It's not very nice to change the requirements in a minor version, but I
>> don't think this would be a real problem for anyone. Not many people
>> build PostgreSQL using MinGW, let alone with an ancient version of it.
>> But if people don't agree, we could instead revert this patch and apply
>> the smaller V2 patch [2] instead, in the back-branches.
>
>> Thoughts? Any objections to requiring a newer version of MinGW? Any
>> objections to do so in the next minor release?
>
> Hm. I'm +1 for doing that in HEAD, but less so for the back branches.
>
> Can we get some fix on when the functions in question were added
> to MinGW? If we knew how new a toolchain we'd be requiring here,
> that would help make this decision.

I did some archeology, and found CheckTokenMembership() in MinGW's
w32api packages version 3.14
(https://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/w32api-3.14/,
in include/winbase.h). According to the timestamps on that download
page, that was released in 2009. That was the oldest version I could
find, so it might go even further back.

Dave, do you know exactly what version of MinGW narwhal is running? And
how difficult is it to upgrade to something slightly more modern? Ease
of upgrade is another good data point on how far we need to support old
versions.

- Heikki

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2017-03-22 13:11:03 pgsql: Improve performance of replay of AccessExclusiveLocks
Previous Message Simon Riggs 2017-03-22 07:07:29 pgsql: Teach xlogreader to follow timeline switches

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2017-03-22 10:57:08 Re: Measuring replay lag
Previous Message Amit Kapila 2017-03-22 10:36:28 Re: Patch: Write Amplification Reduction Method (WARM)