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 1glg1Q-00086Z-Am for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Jan 2019 20:18:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1glg1P-0007WU-14 for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Jan 2019 20:18:15 +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 1glg1O-0007WD-Ma for pgsql-hackers@lists.postgresql.org; Mon, 21 Jan 2019 20:18:14 +0000 Received: from lists.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glg1K-00089O-8A for pgsql-hackers@lists.postgresql.org; Mon, 21 Jan 2019 20:18:12 +0000 Received: from [192.168.50.9] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 8938E3E5; Mon, 21 Jan 2019 12:18:08 -0800 (PST) Received: from c-73-97-49-9.hsd1.wa.comcast.net ([73.97.49.9] helo=[192.168.50.9]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.5.1); 21 Jan 2019 12:18:08 -0800 Subject: Re: Thread-unsafe coding in ecpg To: Tom Lane , Andres Freund Cc: Andrew Dunstan , "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> From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: <0f02fb0d-0a80-0dad-a01e-e6879d24e48f@commandprompt.com> Date: Mon, 21 Jan 2019 12:18:08 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20352.1548101123@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-01888-01666 X-Assp-Session: 7F51EC585980 (mail 1) X-Assp-Original-Subject: Re: Thread-unsafe coding in ecpg X-Assp-Client-SSL: yes List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/21/19 12:05 PM, Tom Lane wrote: > Andres Freund writes: >> Seems jacana might not have like this change? >> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jacana&dt=2019-01-21%2019%3A01%3A28 > Hmm. So mingw doesn't provide access to _configthreadlocale(). > That's unfortunate, at least if we think that mingw is still a viable > production platform, because it means we can't make ecpg thread-safe > on that platform. > > Is there a newer version of mingw that does have this functionality? > I'm not sure whether to install a version check or just assume that > it's never there. Apparently this can be done with thee 64bit version: https://stackoverflow.com/questions/33647271/how-to-use-configthreadlocale-in-mingw JD > > regards, tom lane > -- Command Prompt, Inc. || http://the.postgres.company/ || @cmdpromptinc PostgreSQL centered full stack support, consulting and development. Advocate: @amplifypostgres || Learn and Network: https://postgresconf.org *** A fault and talent of mine is to tell it exactly how it is. ***