Re: [HACKERS] ECPG thread-safety

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Rod Taylor <rbt(at)rbt(dot)ca>
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 17:44:04
Message-ID: 200305261744.h4QHi4n08217@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces pgsql-patches

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?

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

Attachment Content-Type Size
unknown_filename text/plain 2.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-05-26 17:54:35 Re: Bug(s) or not?
Previous Message Bruce Momjian 2003-05-26 17:33:37 Removing a user's password

Browse pgsql-interfaces by date

  From Date Subject
Next Message Rod Taylor 2003-05-26 17:55:13 Re: [HACKERS] ECPG thread-safety
Previous Message Rod Taylor 2003-05-26 17:32:03 Re: [HACKERS] ECPG thread-safety

Browse pgsql-patches by date

  From Date Subject
Next Message Rod Taylor 2003-05-26 17:55:13 Re: [HACKERS] ECPG thread-safety
Previous Message Bruce Momjian 2003-05-26 17:33:37 Removing a user's password