From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Lee Kindness <lkindness(at)csl(dot)co(dot)uk> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Tomas Berndtsson <tomas(at)nocrew(dot)org> |
Subject: | Re: big text field -> message type 0x44 |
Date: | 2002-12-05 19:07:37 |
Message-ID: | 210790000.1039115257@lerlaptop.iadfw.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
--On Thursday, December 05, 2002 14:02:04 -0500 Tom Lane
<tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Lee Kindness <lkindness(at)csl(dot)co(dot)uk> writes:
>> Tom Lane writes:
>>>> Okay, so it seems -D_REENTRANT is the appropriate fix.
>
>> However, _REENTRANT is not a Solarisism... On all (recent) UNIX
>> systems it toggles on correct handling for thread specific instances
>> of historically global variables (eg errno). It should be considered
>> for all platforms if libpq is intended to be used from threaded
>> programs.
>
> Now that I think about it, what that macro is probably really doing is
> switching the code from looking at a static "errno" variable to looking
> at a per-thread variable. So in fact -D_REENTRANT would be correct if
> you intended to link with a thread-aware libc, and wrong if you intended
> to link with a non-aware libc. (Is there such a thing as a non-threaded
> implementation of libc on the platforms where -D_REENTRANT does
> anything?) If this analysis is right then I think we should *not*
> force _REENTRANT; it will have to be up to users to choose the mechanism
> they want to use in their programs.
>
YES. I believe UnixWare7 has such. You need -Kthread to get a threaded
version of SOME
calls.
If you need more details, Ask.
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-12-05 19:12:11 | Re: big text field -> message type 0x44 |
Previous Message | Paul Ramsey | 2002-12-05 19:07:09 | Re: 7.3 pg_relcheck oddness |