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 F371A9259DC for ; Mon, 26 May 2003 14:22:51 -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 56980-09 for ; Mon, 26 May 2003 14:22:47 -0400 (EDT) Received: from tomts6-srv.bellnexxia.net (tomts6.bellnexxia.net [209.226.175.26]) by developer.postgresql.org (Postfix) with ESMTP id 046A19259D9 for ; Mon, 26 May 2003 14:22:47 -0400 (EDT) Received: from [10.0.2.5] ([216.208.117.7]) by tomts6-srv.bellnexxia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030526181807.NLI17633.tomts6-srv.bellnexxia.net@[10.0.2.5]>; Mon, 26 May 2003 14:18:07 -0400 Subject: Re: [HACKERS] ECPG thread-safety From: Rod Taylor To: Bruce Momjian Cc: Shridhar Daithankar , PostgreSQL Patches In-Reply-To: <200305261816.h4QIGQQ09655@candle.pha.pa.us> References: <200305261816.h4QIGQQ09655@candle.pha.pa.us> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-zofWCpF+JrCfZWTRnrvj" Organization: Message-Id: <1053973085.10179.34.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 26 May 2003 14:18:06 -0400 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/145 X-Sequence-Number: 7088 --=-zofWCpF+JrCfZWTRnrvj Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2003-05-26 at 14:16, Bruce Momjian wrote: > 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 thre= ad attr. like > > > > > > > pthread_init_attr, that should be enough to test header and l= ibrary. > > > > > >=20 > > > > > > And compiler flags, I forgot.. -pthread on freeBSD/gcc and -D_R= EENTRANT on=20 > > > > > > linux at least. FreeBSD needs _THREAD_SAFE as well IIRC. > > > > >=20 > > > > > Are you saying FreeBSD actually has a -pthread compiler flag? An= d Linux > > > > > needs REENTRANT. We can do that. Here is an updated patch. Of = course, > > > > > I need to run autoconf too. > > > >=20 > > > > If I'm not mistaken, you use -lpthread on FreeBSD 4.x, and -lc_r on > > > > FreeBSD 5.x. > > >=20 > > > Thanks. Patch updated and attached. Are there any FreeBSD 3.X machi= nes > > > still around that have pthread.h? > >=20 > > 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. > >=20 > > I couldn't tell you about 3.x as I never did anything outside of > > installing ports. >=20 > When did pthread.h appear in FreeBSD? 2.2.0 --=20 Rod Taylor PGP Key: http://www.rbt.ca/rbtpub.asc --=-zofWCpF+JrCfZWTRnrvj Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA+0lpd6DETLow6vwwRAn9PAJ0aHfiQrAtTcERwLZqwyS9pUOI+0QCcDxq2 Q2lPMTEqT+YWBYCglxdPD/M= =K642 -----END PGP SIGNATURE----- --=-zofWCpF+JrCfZWTRnrvj--