Re: pg_locale compilation error with Visual Studio 2017 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_locale compilation error with Visual Studio 2017
Date
Msg-id 23073.1526049547@sss.pgh.pa.us
Whole thread Raw
In response to pg_locale compilation error with Visual Studio 2017  (Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>)
Responses Re: pg_locale compilation error with Visual Studio 2017  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Sandeep Thakkar <sandeep.thakkar@enterprisedb.com> writes:
> I found the same error was raised by someone in pgsql-general lists but
> don't see the submitted patch was committed. Here is the discussion link
> https://www.postgresql.org/message-id/CAL5LfdQdxt9u1W4oJmELybVBJE3X4rtNrNp62NNFw9n%3DXd-wTQ%40mail.gmail.com

Yeah, that patch was rejected as unmaintainable, and it still is.
Somebody needs to do some research in Microsoft's docs and find out
what is the MS-approved way of getting the locale name now.

In the other thread, Munro wondered if ResolveLocaleName() would do
the trick, but AFAICS nobody has tried it.

Another idea would be to replace the whole mess with a lookup table,
although how to fill the table or maintain it in future would be
problematic too.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] Surjective functional indexes
Next
From: Simon Riggs
Date:
Subject: Re: [HACKERS] Surjective functional indexes