Re: Thread-unsafe coding in ecpg
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>,Tom Lane
<tgl@sss.pgh.pa.us>,"Joshua D. Drake" <jd@commandprompt.com>
Cc: "Tsunakawa,
Takayuki" <tsunakawa.takay@jp.fujitsu.com>,Michael Meskes <meskes@postgresql.org>,"pgsql-hackers@lists.postgresql.org"
<pgsql-hackers@lists.postgresql.org>
Date: 2019-01-22T17:56:35Z
Lists: pgsql-hackers
On January 22, 2019 9:50:19 AM PST, Andrew Dunstan <andrew.dunstan@2ndquadrant.com> wrote: > >On 1/21/19 10:00 PM, Andrew Dunstan wrote: >> On 1/21/19 3:25 PM, Tom Lane wrote: >>> "Joshua D. Drake" <jd@commandprompt.com> 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. The thread about the introduction is from 2016, so that's kind of expected. Andres -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Commits
-
Remove _configthreadlocale() calls in ecpg test suite.
- e3565fd61cee 12.0 landed
-
Remove infinite-loop hazards in ecpg test suite.
- d5a1fde39726 12.0 landed
- fbf5395cb1ea 9.5.16 landed
- 6d6333745b11 9.4.21 landed
- adc2553b7069 9.6.12 landed
- 5b5cb3b0eb31 10.7 landed
- 28868f77b6cb 11.2 landed
-
Blind attempt to fix _configthreadlocale() failures on MinGW.
- 773f594408b9 9.4.21 landed
- 7ac0e71aa623 9.5.16 landed
- 1d334ab6e0b5 9.6.12 landed
- dd815a94ccf5 10.7 landed
- b620cf2d4762 11.2 landed
- 2cf91ccb73ce 12.0 landed
-
Avoid thread-safety problem in ecpglib.
- f305e8457d1e 11.2 landed
- eb3e90cad1e4 9.6.12 landed
- c9ff6cbfc472 9.4.21 landed
- 844d91fd6496 9.5.16 landed
- 6106f9dd71ff 10.7 landed
- 8eb4a9312c95 12.0 landed
-
Second try at fixing ecpglib thread-safety problem.
- ee27584c4a40 12.0 landed