Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gm0Bv-0006WP-Oh for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Jan 2019 17:50:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gm0Bu-0003LZ-0s for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Jan 2019 17:50:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gm0Bt-0003LS-JQ for pgsql-hackers@lists.postgresql.org; Tue, 22 Jan 2019 17:50:25 +0000 Received: from mail-yw1-xc42.google.com ([2607:f8b0:4864:20::c42]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gm0Bp-0003fp-JU for pgsql-hackers@lists.postgresql.org; Tue, 22 Jan 2019 17:50:23 +0000 Received: by mail-yw1-xc42.google.com with SMTP id t13so9742281ywe.13 for ; Tue, 22 Jan 2019 09:50:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=g7SHwtg2t9eCJwosBh+VuJ6VyiyQcSDdbEOxTfNM3nA=; b=UfS3sKVTdeqy+wldmFUBv9L9HpWs6RHyIQMFQeF50GfZtzRlAW1quEdl6BBlrIXM/w z+9Fjcc+kHHxbgSaSJ7ifRW1ZkvJqTSxsRdyBs1UpRtnTAXQFtO/4TFsS2g7tpyv4+8U nuyixAhv6rzZsU6ua8fp0ng+IyDEsFMBBNu7mB3LGX8CQsSU39P3994FL2uVqDry7pwC uqUJABJPEzAvIXXSo//FhcTkBaY3YXKefKK/cR1HsxWgsAt0xi9rS42G/qz8NiE4Kk69 FhfyfT4t4S6HZXcgwuR5FZi1TUD08JVVXGiWBNZFgUWBC2xdwFy9ylk4T7mV/d4uYBZ5 PRRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=g7SHwtg2t9eCJwosBh+VuJ6VyiyQcSDdbEOxTfNM3nA=; b=IqlCO6Em87Xfa2i2HYL2SdXpeIz3iVK+x5zvDggmr0sk932XiY/l5bNI3So6tBrR3G WORuMqvmx3POq2L/aUjxknOs3dX0otDrvTDz1BNAs0W42nLdaen+BghaRXxvhRGWSK6f pgJNTEXslMkPdVDCLBmzDvcek8teH9/qQGov9a90p1qGABGO8ooaCRVjiQdc/orv40we HEXiAjJjmtolvGYeeY/Ozm1yG6PUUH/5wTwn9sQdAZ3eGSZeI/qq0pecOV32SLGKDdXM gkze4mWchwzEMYT5DvLK8M3FzgvHWtIR3htW5KoDzb1SHoZM40S2p6GjAWUrJfVDBw7d CeQQ== X-Gm-Message-State: AJcUukemHZ9sZIxJZqW/ZwRN/J0ZuX83CKwHaqxqHIn1jzB4Fen6iakB jlOYcl+cs0+axus2PgULTW5DkHVskTfoUemiyLeIYghKuerdFVk0+xQgrGgrR+Q1hrwjhZqkj59 zKLunW5M+FOGatIKyB54QjkxHuENNKQTXBPHPPv6RufyBMg2AxcSz6FXa5UlBT+Q/I0FDfn1+BS BjUQYdse7TdbPfZDRzReTJ X-Google-Smtp-Source: ALg8bN6pubCLeo+8P5JcvpuPNO7ZGuwUVI5pIZ1CJjnaRsIPzsKFoJki5KXznjafAJ/DqRBCMTY2DA== X-Received: by 2002:a81:87c3:: with SMTP id x186mr33166542ywf.147.1548179420586; Tue, 22 Jan 2019 09:50:20 -0800 (PST) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id i7sm6407890ywd.7.2019.01.22.09.50.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 09:50:19 -0800 (PST) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: Thread-unsafe coding in ecpg To: Tom Lane , "Joshua D. Drake" Cc: Andres Freund , "Tsunakawa, Takayuki" , Michael Meskes , "pgsql-hackers@lists.postgresql.org" References: <24002.1547944649@sss.pgh.pa.us> <29905.1548005448@sss.pgh.pa.us> <29984.1548014676@sss.pgh.pa.us> <0A3221C70F24FB45833433255569204D1FB6C47E@G01JPEXMBYT05> <21439.1548037255@sss.pgh.pa.us> <0A3221C70F24FB45833433255569204D1FB6C4FA@G01JPEXMBYT05> <32316.1548040561@sss.pgh.pa.us> <0A3221C70F24FB45833433255569204D1FB6C6C0@G01JPEXMBYT05> <13850.1548090570@sss.pgh.pa.us> <20190121193512.tdmcnic2yjxlufaw@alap3.anarazel.de> <20352.1548101123@sss.pgh.pa.us> <0f02fb0d-0a80-0dad-a01e-e6879d24e48f@commandprompt.com> <27185.1548102332@sss.pgh.pa.us> Openpgp: preference=signencrypt Autocrypt: addr=andrew.dunstan@2ndQuadrant.com; prefer-encrypt=mutual; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk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ppia60NOlvRDqXbryzuvfe+iYo6bVP3Ikr TPTNYL/BePUTD2DPvSI82SbGTyzuA7SJv6NRqqQDMIy1fU6KyQFLmQJp/QJyhKWzm9jWh8ee w8jVaoMY0Kbq5N7RqisEx1Lu/Iw646UphdYzQNymf+kbiU5Kf4I6DhzV8w9sie1Bo1juNj3I c5/fFJsmxljbnaDbXPcnFsur1Oo9mIHFakgWgOBMuxoWfjONiLjjLh/9+ZIqSSLX Message-ID: <38244c62-e1cc-40f5-d567-777540815c16@2ndQuadrant.com> Date: Tue, 22 Jan 2019 12:50:19 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/21/19 10:00 PM, Andrew Dunstan wrote: > On 1/21/19 3:25 PM, Tom Lane wrote: >> "Joshua D. Drake" writes: >>> On 1/21/19 12:05 PM, Tom Lane wrote: >>>> Is there a newer version of mingw that does have this functionality? >>> Apparently this can be done with thee 64bit version: >>> https://stackoverflow.com/questions/33647271/how-to-use-configthreadlocale-in-mingw >> Hmm, the followup question makes it sound like it still didn't work :-(. >> >> However, since the mingw build is autoconf-based, seems like we can >> install a configure check instead of guessing. Will make it so. >> >> Task for somebody else: run a MinGW64 buildfarm member. >> >> > > I could set that up in just about two shakes of a lamb's tail - I have a > script to do so all tested on vagrant/aws within the last few months. > > > What I don't have is resources. My Windows resources are pretty much > tapped out. I would need either some modest hardware or a Windows VM > somewhere in the cloud - could be anywhere but I'm most at home on AWS. > Incidentally, jacana *is* running mingw64, but possibly not a young enough version. I just ran a test on an up to date version and it found the config setting happily, and passed the make stage. I can look at upgrading jacana to a more modern compiler. The version it's running is 4.9.1, apparently built around Oct 2014, so it's not that old. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services