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

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dave Page <dpage(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org, "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>
Subject: Re: Re: [COMMITTERS] pgsql: Fix and simplify check for whether we're running as Windows serv
Date: 2017-03-22 14:13:05
Message-ID: 20170322141305.bgxctu22pqnirtgu@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Heikki Linnakangas wrote:

> 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.

Given that this was backpatched and that it broke narwhal in all
branches, I think the solution needs to make narwhal work again without
requiring it to upgrade; so we should acquire CheckTokenMembership via
dynloading just like we do the other functions. If we want to require a
newer mingw version in pg10, that's acceptable, but it should be a
separate patch.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2017-03-22 14:20:50 pgsql: Sync pg_dump and pg_dumpall output
Previous Message Simon Riggs 2017-03-22 13:11:03 pgsql: Improve performance of replay of AccessExclusiveLocks

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2017-03-22 14:14:14 Re: Metadata about relation creation & full scans.
Previous Message Ashutosh Bapat 2017-03-22 13:59:23 Re: Partition-wise join for join between (declaratively) partitioned tables