Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aihFS-0008Hy-4x for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Mar 2016 11:46:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aihFR-0001WI-MK for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Mar 2016 11:46:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aihE5-0008SD-Rr for pgsql-hackers@postgresql.org; Wed, 23 Mar 2016 11:45:25 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1aihDp-0006v0-Tu for pgsql-hackers@postgresql.org; Wed, 23 Mar 2016 11:45:25 +0000 Received: by mail-wm0-x235.google.com with SMTP id r129so132217866wmr.1 for ; Wed, 23 Mar 2016 04:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=nPjPmBP21qLSlAkYObDI5s7u1uChoIbmYsuFWrf2RkI=; b=sArcIxeTfR39uoZU2TvKQJDjdH7Gx9mXMmv8ur9MmerKsFrOtC0JIx/Mnkpu9jSrGC IK9PhpTeOtB1prVytN6gu1I/QLB0kwNhB27dIfOb0EKBjdI57AKtVWJeu2xfVGxPfdgP 9YKgBHF+nBWUtYY0Rr0ar6fc4IaCPtvhuRE18nD2BZxgNWcUXxgy45F1X4+U47eY21HL mv0k1l/HggTNL6vn/NNAiPmTJmeT42CbMabiJJX6nYmcnl9btl8tMYYiBvf0cZBH06q2 03+bMC0LvzZ6wOuR3etnmbPlWlwKYoqkpYkyvr3qTSaRFiM1ePmXs5r/h+f8TNCXWUe3 NE+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=nPjPmBP21qLSlAkYObDI5s7u1uChoIbmYsuFWrf2RkI=; b=bOrIj8wAWHXJS37ZONGp8Qu/D3G9Yabt8dh6pcBGN9ARQygzg+gXLDbk9E3qPbRuSt VdyymbEiTxabFcuCXLC+c6Bh1P+3bfMqbGqpdEqixSMxxFikDbjdUSr1vS6vVEg82L3P DIqdNyt1G/rU2/uE7Lw2ILeEZnsbx5ZTYnWCyDlsu0J7nuFDsZiYWgSWbQ7P2rQs/Dic z0lJ8yAyLuT8VUTi4qx9XTSxieHCBO0zVQUfkquLw1j/8KwlUaRnRu6ILJx2kdUqNKUK P1DtC+DTaqGL52/9rIGFE9w57om6dpuGLtobI9PWWJKYf160XKXch3LISQQbG6bVb2BG 5S2g== X-Gm-Message-State: AD7BkJJkZfEG4RU6wvC+jKZRc/4kiO1CPRLtaBftZyWjf0uGfqlyggl96WSfbcsc668hB1FtWti+sbs9JMQGEWTEMDN46e5qZ//FF95m7NBkSDqNMixvjo41/RT+TeLhToHsB18A8Zm15qisUFsCBAWnNkFE3OZNrJKHlgDe/61FeYCdlqBX7Fs3Ijqp+69ktA== X-Received: by 10.194.61.169 with SMTP id q9mr2918966wjr.77.1458733508334; Wed, 23 Mar 2016 04:45:08 -0700 (PDT) Received: from [192.168.0.103] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id jf6sm2211733wjb.2.2016.03.23.04.45.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 Mar 2016 04:45:06 -0700 (PDT) Subject: Re: VS 2015 support in src/tools/msvc To: Michael Paquier , Andrew Dunstan References: <56DA6394.9040404@2ndquadrant.com> <15559.1457156815@sss.pgh.pa.us> <56DAEE74.3010604@dunslane.net> <56DB47A5.7040502@dunslane.net> <56DEEF92.4020507@dunslane.net> <9775.1457451803@sss.pgh.pa.us> <56DEF8B6.8070205@dunslane.net> <56EDDB60.4060506@dunslane.net> <56EEEF45.1000708@dunslane.net> Cc: Tom Lane , Magnus Hagander , PostgreSQL mailing lists From: Petr Jelinek Message-ID: <56F281C0.3030107@2ndquadrant.com> Date: Wed, 23 Mar 2016 12:45:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 23/03/16 08:17, Michael Paquier wrote: > On Mon, Mar 21, 2016 at 3:43 AM, Andrew Dunstan wrote: >> >> >> On 03/20/2016 12:02 AM, Michael Paquier wrote: >>> >>> On Sun, Mar 20, 2016 at 8:06 AM, Andrew Dunstan >>> wrote: >>>> >>>> >>>> Still to do: the non-perl pieces. >>> >>> The patch to address locales is the sensitive part. The patch from >>> Petr is taking the correct approach though I think that we had better >>> simplify it a bit and if possible we had better not rely on the else >>> block it introduces. >> >> >> >> OK, the please send an updated set of patches for what remains. > > Here you go: > - 0001 fixes the global declarations of TIMEZONE_GLOBAL and > TZNAME_GLOBAL to be WIN32-compliant. I got bitten by that in the ECPG > compilation. > - 0002, support of VS2015 in the scripts of src/tools/msvc > - 0003, this is necessary in order to run the regression tests, > details are here: > http://www.postgresql.org/message-id/CAB7nPqTDiXxS8CdL8mOiVh6qFQ-1qV9mKN0AyjzYBvzv6WC0dA@mail.gmail.com So that's basically what Andres did? Interesting that we now actually really need it. I was in favor of doing those changes in any case. > - 0004 is the fix for locales. This is actually Petr's work upthread, > I have updated comments in the code though and did a bit more > polishing. This still looks like the cleanest solution we have. Other > solutions are mentioned upthread: redeclaration of struct _locale_t in > backend code is one. > Thanks for polishing this. I think this is ready to be committed, but the 0003 might be somewhat controversial based on the original thread. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, 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