Re: [HACKERS] VC2005 build and pthreads

2007-02-05 Thread Magnus Hagander
Martijn van Oosterhout wrote: > On Mon, Feb 05, 2007 at 11:34:23AM -0500, Tom Lane wrote: >> Martijn van Oosterhout writes: >>> That's true, but I think it would be worthwhile to invert the switch to >>> be --disable-thread-safety, since the number of people who don't >>> understand the problem fa

Re: [HACKERS] VC2005 build and pthreads

2007-02-05 Thread Martijn van Oosterhout
On Mon, Feb 05, 2007 at 11:34:23AM -0500, Tom Lane wrote: > Martijn van Oosterhout writes: > > That's true, but I think it would be worthwhile to invert the switch to > > be --disable-thread-safety, since the number of people who don't > > understand the problem far outweigh the cost of the switch

Re: [HACKERS] VC2005 build and pthreads

2007-02-05 Thread Tom Lane
Martijn van Oosterhout writes: > That's true, but I think it would be worthwhile to invert the switch to > be --disable-thread-safety, since the number of people who don't > understand the problem far outweigh the cost of the switch. I'd vote against that unless it were done only for Linux, and p

Re: [HACKERS] VC2005 build and pthreads

2007-02-05 Thread Martijn van Oosterhout
On Mon, Feb 05, 2007 at 11:09:06AM -0500, Tom Lane wrote: > I think the real point is that you get the same C library whether you > ask for thread safety or not, and it does internal locking to protect > itself against multi threads anyway. So arguably there's no point in > building a thread-unsaf

Re: [HACKERS] VC2005 build and pthreads

2007-02-05 Thread Gregory Stark
"Douglas McNaught" <[EMAIL PROTECTED]> writes: > It uses threads at least for the POSIX AIO calls--I'm not sure what > else. On that tangent, is that still true or is it only for older kernels that it's true? I was under the impression newer kernels implemented the aio interface but others seem t

Re: [HACKERS] VC2005 build and pthreads

2007-02-05 Thread Tom Lane
Douglas McNaught <[EMAIL PROTECTED]> writes: > Bruce Momjian <[EMAIL PROTECTED]> writes: >> Martijn van Oosterhout wrote: >>> It'd be nice if we could do the same for some Unix platofrms like >>> Linux. The C library uses threads internally, and there's no actual >>> downside to enabling thread saf

Re: [HACKERS] VC2005 build and pthreads

2007-02-05 Thread Douglas McNaught
Bruce Momjian <[EMAIL PROTECTED]> writes: > Martijn van Oosterhout wrote: >> It'd be nice if we could do the same for some Unix platofrms like >> Linux. The C library uses threads internally, and there's no actual >> downside to enabling thread safety there, except removing a few failure >> modes

Re: [HACKERS] VC2005 build and pthreads

2007-02-05 Thread Bruce Momjian
Martijn van Oosterhout wrote: -- Start of PGP signed section. > On Sun, Jan 28, 2007 at 02:05:41PM +0100, Magnus Hagander wrote: > > Anyway. We hard-code thread-safety to on for Win32, because win32 is a > > threaded platform in general - almost everything can be exposed to > > threading even if th

Re: [HACKERS] VC2005 build and pthreads

2007-02-04 Thread Martijn van Oosterhout
On Sun, Jan 28, 2007 at 02:05:41PM +0100, Magnus Hagander wrote: > Anyway. We hard-code thread-safety to on for Win32, because win32 is a > threaded platform in general - almost everything can be exposed to > threading even if they don't want it. For example a VB program that has > no threading at

Re: [HACKERS] VC2005 build and pthreads

2007-01-28 Thread Magnus Hagander
Joachim Wieland wrote: > On Fri, Jan 26, 2007 at 10:10:20PM +0100, Magnus Hagander wrote: I would like to build pg on VC2005. How do I use pthreads that is mentioned in the README file. Do I need the DLL? Sources? LIB? Where do I install or copy them.. > >>> Err, pthreads is a threa

Re: [HACKERS] VC2005 build and pthreads

2007-01-28 Thread Joachim Wieland
On Fri, Jan 26, 2007 at 10:10:20PM +0100, Magnus Hagander wrote: > >> I would like to build pg on VC2005. How do I use pthreads that is > >> mentioned in the README file. Do I need the DLL? Sources? LIB? > >> Where do I install or copy them.. > > Err, pthreads is a threads library for Unix, I don'

Re: [HACKERS] VC2005 build and pthreads

2007-01-26 Thread Magnus Hagander
Martijn van Oosterhout wrote: > On Fri, Jan 26, 2007 at 09:34:10PM +0100, Gevik Babakhani wrote: >> Folks, >> >> I would like to build pg on VC2005. How do I use pthreads that is >> mentioned in the README file. Do I need the DLL? Sources? LIB? >> Where do I install or copy them.. > > Err, pthread

Re: [HACKERS] VC2005 build and pthreads

2007-01-26 Thread Gevik Babakhani
pthreads in needed to buold PG in vc++ 2005 please read pgsql/src/tools/msvc/README Have a nice day. On Fri, 2007-01-26 at 21:47 +0100, Martijn van Oosterhout wrote: > On Fri, Jan 26, 2007 at 09:34:10PM +0100, Gevik Babakhani wrote: > > Folks, > > > > I would like to build pg on VC2005. How do I

Re: [HACKERS] VC2005 build and pthreads

2007-01-26 Thread Martijn van Oosterhout
On Fri, Jan 26, 2007 at 09:34:10PM +0100, Gevik Babakhani wrote: > Folks, > > I would like to build pg on VC2005. How do I use pthreads that is > mentioned in the README file. Do I need the DLL? Sources? LIB? > Where do I install or copy them.. Err, pthreads is a threads library for Unix, I don't