Re: [HACKERS] ECPG thread-safety

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] ECPG thread-safety
Date: 2003-05-26 18:18:06
Message-ID: 1053973085.10179.34.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces pgsql-patches

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 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?

2.2.0

--
Rod Taylor <rbt(at)rbt(dot)ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-05-26 18:18:21 Re: 500 tpsQL + WAL log implementation
Previous Message Bruce Momjian 2003-05-26 18:16:26 Re: [HACKERS] ECPG thread-safety

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2003-05-26 18:20:06 Re: [HACKERS] ECPG thread-safety
Previous Message Bruce Momjian 2003-05-26 18:16:26 Re: [HACKERS] ECPG thread-safety

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-05-26 18:20:06 Re: [HACKERS] ECPG thread-safety
Previous Message Bruce Momjian 2003-05-26 18:16:26 Re: [HACKERS] ECPG thread-safety