Re: Thread-safe configuration option appears to

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Thread-safe configuration option appears to
Date: 2003-08-04 22:13:11
Message-ID: 200308042213.h74MDBw22248@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Would you send over a modified template/unixware and template/sco to at
least allow threading when enabled --- see linux or freebsd for examples
--- that is how we are enabling threading.

Are you saying you want that flag without --enable-thread-safety?

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

Larry Rosenman wrote:
>
>
> --On Monday, August 04, 2003 13:19:57 -0400 Bruce Momjian
> <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
>
> > Larry Rosenman wrote:
> >>
> >>
> >> --On Monday, August 04, 2003 13:11:45 -0400 Bruce Momjian
> >> <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
> >>
> >> > Larry Rosenman wrote:
> >> >> >> > We decided to make separate thread/nonthread libraries if the
> >> >> >> > threading requires any special flags --- we haven't done that
> >> >> >> > yet, and only configure controls it.
> >> >> >> That will be a POLA (principle of least astonishment) violation on
> >> >> >> UnixWare.
> >> >> >
> >> >> > When we have the capability to do dual library builds, we might
> >> >> > have a way to specify a threading flag that will apply to the main
> >> >> > libpq and not create a libpq_r. If it is a good flag, can we use
> >> >> > it in the template file for all compiling?
> >> >> I **THINK** so. What I'm thinking of is -D_REENTRANT for UnixWare
> >> >> especially for libpq.
> >> >>
> >> >> the --with-threads would cause ecpg to be compiled/linked as -lpthread
> >> >> in addition to
> >> >> -D_REENTRANT
> >> >
> >> > Nope, we are not going to link with -lpthread unless it is enabled in
> >> > configure.
> >> Right. but libpq should be built with -D_REENTRANT on UnixWare
> >> regardless of the
> >> --with-threads.
> >
> > Well, let's see what additional functionality we need. I am not
> > feeling too friendly on SCO/Unixware right now to jump through hoops.
> Let's not go there. I'm not involved in the IP fight, but I am a USER on
> that
> platform, and SCO is thinking ****SERIOUSLY**** about shipping PG on the
> Platform
> as part of their extensions offering.
>
> What the fr*** harm is it in passing -D_REENTRANT into the libpq build on
> UnixWare
> irregardless of the --with-threads* flag?
>
> Same argument for allowing the PORT to determine whether to allow/permit
> the full
> pathname in for DT_SONAME.
>
> Let's not run people off because of what the damn lawyers are doing.
>
> LER
>
>
>
>
> --
> Larry Rosenman http://www.lerctr.org/~ler
> Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
> US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
>
>

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-08-04 22:16:02 Re: Thread-safe configuration option appears to
Previous Message Tom Lane 2003-08-04 21:03:02 Re: lower and upper not UTF-8 safe