Re: orangutan seizes up during isolation-check

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, davec(at)postgresintl(dot)com, hlinnakangas(at)vmware(dot)com
Subject: Re: orangutan seizes up during isolation-check
Date: 2014-10-11 13:07:46
Message-ID: 54392BA2.6060803@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 10/11/14 1:41 AM, Noah Misch wrote:
> Good question. It would be nice to make the change there, for the benefit of
> other consumers. The patch's setlocale_native_forked() assumes it never runs
> in a multithreaded process, but libintl_setlocale() must not assume that. I
> see a few ways libintl/gnulib might proceed:

Yeah, it's difficult to see how they might proceed if they keep calling
into Core Foundation, which might do anything, now or in the future.

I went ahead and submitted a bug report to gettext:
https://savannah.gnu.org/bugs/index.php?43404

(They way I understand it is that the files concerned originate in
gettext and are copied to gnulib.)

Let's see what they say.

I like the idea of calling pthread_is_threaded_np() as a verification.
This appears to be a OS X-specific function at the moment. If other
platforms start adding it, then we'll run into the usual problems of how
to link binaries that use pthread functions. Maybe that's not a
realistic concern.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2014-10-11 13:10:45 Re: Wait free LW_SHARED acquisition - v0.9
Previous Message Simon Riggs 2014-10-11 08:51:28 Re: Column Redaction