From: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
To: pgsql-hackers@postgresql.org
Subject: Re: ECPG thread-safety
Date: Fri, 28 Mar 2003 21:45:53 +0530
Message-ID: <200303282145.53705.shridhar_daithankar@nospam.persistent.co.in> (raw)
In-Reply-To: <200303281600.h2SG0lP05298@candle.pha.pa.us>
References: <200303281600.h2SG0lP05298@candle.pha.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: shridhar_daithankar@persistent.co.in, pgsql-hackers@postgresql.org
Subject: Re: ECPG thread-safety
In-Reply-To: <200303282145.53705.shridhar_daithankar@nospam.persistent.co.in>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox