Re: [HACKERS] ECPG thread-safety

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] ECPG thread-safety
Date: 2003-05-26 17:01:49
Message-ID: 200305261701.h4QH1nn06556@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces pgsql-patches


I have developed the following configure thread test based on your
information. I have opted for a simple check for pthread.h, and we can
then fill in any additional library flags needed for various OS's.

---------------------------------------------------------------------------

Shridhar Daithankar wrote:
> On Friday 28 March 2003 21:30, you wrote:
> > Would someone take those patches and hunt around for proper 'configure'
> > tests? I can do the configure coding, but I don't know what tests to
> > make.
> >
> > http://services.csl.co.uk/postgresql/
>
> I also need configure tests for thread for one of my other application and
> don't know how to put them. So I have left those as additional ldflags
> options to users.
>
> I suggest we somehow test following config to start with
>
> 1) Linuxthreads on linux
> Threads are usually installed in /usr/ So pthread.h and -lpthread should work
> on most setups.
>
> 2) Native freeBSD threads
> pthread.h in /usr/include and lc_r
>
> 3)linuxthreads on freeBSD, ports collection
> /usr/local/include/pthreads/linuxthreads/pthread.h
> /usr/local/lib/libpthread.so
>
> 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.
>
> I don't how we are going to let people specify thread implementation where
> there are multiple thread libraries are available .e.g. freeBSD.
>
> HTH
>
> Shridhar
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

--
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.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-05-26 17:06:36 Re: [HACKERS] ECPG thread-safety
Previous Message Tom Lane 2003-05-26 16:50:10 Re: Bug(s) or not?

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2003-05-26 17:05:19 Re: Race condition with libpq
Previous Message Dietmar May 2003-05-26 16:49:38 Re: Race condition with libpq

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-05-26 17:06:36 Re: [HACKERS] ECPG thread-safety
Previous Message Joe Conway 2003-05-26 15:57:17 Re: IS OF