From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: FreeBSD Thread-safe functions ... |
Date: | 2003-09-27 15:40:38 |
Message-ID: | 200309271540.h8RFecQ15996@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Bruce Momjian wrote:
> Marc G. Fournier wrote:
> >
> > After hearing that FreeBSD wasn't thread safe, I posted to the FreeBSD
> > lists to find out what is up ...
> >
> > FreeBSD 5.x has a getpwuid_r function that should be used ... and, the
> > word I got from one of the developers was that getaddrinfo(3) should be
> > used instead of gethostbyname ...
> >
> > Now, getpwuid_r is still not available in 4.x, so we still will fail over
> > there, and I've seen nothing to indicate that it will be MFCd down, but
> > getaddrinfo is available in both ...
>
> OK, I have adjusted the thread test program so it has its own Makefile
> and is now in src/tools/thread. I also added code so gethostbyname is
> tested only if getaddrinfo isn't present.
>
> Would people please retest their operating sysystems using this program?
> I think we had a few OS's that failed the test originally because
> gethostbyname wasn't thread-safe, and that is probably not tested
> anymore on that OS.
Oops, I have a few more adjustments to make. I now realize that to get
the thread flags from the port files to the Makefile, you have to run
configure and enable threads. I will let you know when it is ready.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2003-09-27 15:46:06 | Re: pg_dump doesn't dump binary compatible casts |
Previous Message | Bruce Momjian | 2003-09-27 15:34:33 | Re: FreeBSD Thread-safe functions ... |