X-Original-To: pgsql-patches@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 4B8A49259C5 for ; Mon, 26 May 2003 14:16:44 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 55705-01 for ; Mon, 26 May 2003 14:16:42 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by developer.postgresql.org (Postfix) with ESMTP id 78C4A9254DD for ; Mon, 26 May 2003 14:16:40 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h4QIGQQ09655; Mon, 26 May 2003 14:16:26 -0400 (EDT) From: Bruce Momjian Message-Id: <200305261816.h4QIGQQ09655@candle.pha.pa.us> Subject: Re: [HACKERS] ECPG thread-safety In-Reply-To: <1053971713.10179.24.camel@jester> To: Rod Taylor Date: Mon, 26 May 2003 14:16:26 -0400 (EDT) Cc: Shridhar Daithankar , PostgreSQL Patches X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/143 X-Sequence-Number: 7086 Rod Taylor wrote: -- Start of PGP signed section. > On Mon, 2003-05-26 at 13:44, Bruce Momjian wrote: > > Rod Taylor wrote: > > -- Start of PGP signed section. > > > On Mon, 2003-05-26 at 13:06, Bruce Momjian wrote: > > > > Shridhar Daithankar wrote: > > > > > On Friday 28 March 2003 21:45, you wrote: > > > > > > For testing the library, I think it is enough to init an thread attr. like > > > > > > pthread_init_attr, that should be enough to test header and library. > > > > > > > > > > And compiler flags, I forgot.. -pthread on freeBSD/gcc and -D_REENTRANT on > > > > > linux at least. FreeBSD needs _THREAD_SAFE as well IIRC. > > > > > > > > Are you saying FreeBSD actually has a -pthread compiler flag? And Linux > > > > needs REENTRANT. We can do that. Here is an updated patch. Of course, > > > > I need to run autoconf too. > > > > > > If I'm not mistaken, you use -lpthread on FreeBSD 4.x, and -lc_r on > > > FreeBSD 5.x. > > > > Thanks. Patch updated and attached. Are there any FreeBSD 3.X machines > > still around that have pthread.h? > > You're more likely to run into a 2.x BSD box than a 3.x one :) Early > releases of 4.x were unusually good and very pain free for an upgrade > from 3.x. > > I couldn't tell you about 3.x as I never did anything outside of > installing ports. When did pthread.h appear in FreeBSD? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073