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 175489259A2 for ; Mon, 26 May 2003 13:55:23 -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 49752-10 for ; Mon, 26 May 2003 13:55:21 -0400 (EDT) Received: from tomts11-srv.bellnexxia.net (tomts11.bellnexxia.net [209.226.175.55]) by developer.postgresql.org (Postfix) with ESMTP id 011AA92599B for ; Mon, 26 May 2003 13:55:20 -0400 (EDT) Received: from [10.0.2.5] ([216.208.117.7]) by tomts11-srv.bellnexxia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030526175514.PFTD5754.tomts11-srv.bellnexxia.net@[10.0.2.5]>; Mon, 26 May 2003 13:55:14 -0400 Subject: Re: [HACKERS] ECPG thread-safety From: Rod Taylor To: Bruce Momjian Cc: Shridhar Daithankar , PostgreSQL Patches In-Reply-To: <200305261744.h4QHi4n08217@candle.pha.pa.us> References: <200305261744.h4QHi4n08217@candle.pha.pa.us> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-IKQvUZjDgOD+kZveyiZZ" Organization: Message-Id: <1053971713.10179.24.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 26 May 2003 13:55:13 -0400 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/141 X-Sequence-Number: 7084 --=-IKQvUZjDgOD+kZveyiZZ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 a= ttr. like > > > > > pthread_init_attr, that should be enough to test header and libra= ry. > > > >=20 > > > > And compiler flags, I forgot.. -pthread on freeBSD/gcc and -D_REENT= RANT on=20 > > > > linux at least. FreeBSD needs _THREAD_SAFE as well IIRC. > > >=20 > > > Are you saying FreeBSD actually has a -pthread compiler flag? And Li= nux > > > needs REENTRANT. We can do that. Here is an updated patch. Of cour= se, > > > 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 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. --=20 Rod Taylor PGP Key: http://www.rbt.ca/rbtpub.asc --=-IKQvUZjDgOD+kZveyiZZ 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+0lUB6DETLow6vwwRAj4KAJ4ha2crwTxesRgfieMJloaRqgYH0QCeN1Fm vq5AKYi0PM8ayzJ2//KKOGc= =qcD0 -----END PGP SIGNATURE----- --=-IKQvUZjDgOD+kZveyiZZ--