Re: Unixware Patch (Was: Re: Beta2 Tag'd and Bundled ...)

From: Lee Kindness <lkindness(at)csl(dot)co(dot)uk>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>, Larry Rosenman <ler(at)lerctr(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org, Lee Kindness <lkindness(at)csl(dot)co(dot)uk>
Subject: Re: Unixware Patch (Was: Re: Beta2 Tag'd and Bundled ...)
Date: 2003-08-31 09:37:40
Message-ID: 16209.49636.631446.283494@kelvin.csl.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian writes:
> Marc G. Fournier wrote:
> > On Sat, 30 Aug 2003, Bruce Momjian wrote:
> >
> > > Yes, and that is the complex part because _some_ non-*_r functions are
> > > thread-safe, and some are not. I have to determine if we have other
> > > such platforms before I figure out how to fix it in the cleanest way.
> >
> > Long shot ... is there some way of writing a configure test for this?
> > Right now, it sounds like we're going to be hitting alot of trial-n-error
> > if there isn't ...
>
> How would we test if a function is thread-safe? I can't think of a
> reliable way, and hence my warning that this adjusting could take a
> while.

You don't... and you simply shouldn't care. If there is a_r version
available then we should use it - even if the plain version is "safe".

Just think of this as is it were a normal "port" issue. If an OS
doesn't have zxczxc_r() then we need to write a zxczxc_r() wrapper
function which calls zxczxc() and has the same signature as
zxczxc_r().

L.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Frank Schoep 2003-08-31 09:49:18 pgAdmin III translation: Dutch
Previous Message Tom Lane 2003-08-31 04:44:25 Re: pg_dump and REVOKE on function