pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Blind attempt to fix _configthreadlocale() failures on MinGW.
Date: Thu, 24 Jan 2019 03:47:34 +0000
Message-ID: <E1gmVzK-0007vD-Uo@gemulon.postgresql.org> (raw)

Blind attempt to fix _configthreadlocale() failures on MinGW.

Apparently, some builds of MinGW contain a version of
_configthreadlocale() that always returns -1, indicating failure.
Rather than treating that as a curl-up-and-die condition, soldier on
as though the function didn't exist.  This leaves us without thread
safety on such MinGW versions, but we didn't have it anyway.

Discussion: https://postgr.es/m/d06a16bc-52d6-9f0d-2379-21242d7dbe81@2ndQuadrant.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/dd815a94ccf589001458f353ccb62ca348d1a894

Modified Files
--------------
src/interfaces/ecpg/ecpglib/descriptor.c |  2 +-
src/interfaces/ecpg/ecpglib/execute.c    | 20 +++++++++++---------
2 files changed, 12 insertions(+), 10 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1gmVzK-0007vD-Uo@gemulon.postgresql.org>
Permalink:  ../E1gmVzK-0007vD-Uo@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gmVzK-0007vD-Uo@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Blind attempt to fix _configthreadlocale() failures on MinGW.
  In-Reply-To: <E1gmVzK-0007vD-Uo@gemulon.postgresql.org>
  References: <E1gmVzK-0007vD-Uo@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox