Re: thread_test.c problems

From: <wespvp(at)syntegra(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-general <pgsql-general(at)postgresql(dot)org>
Cc: joseph speigle <joe(dot)speigle(at)jklh(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: thread_test.c problems
Date: 2004-04-05 15:23:50
Message-ID: BC96D626.C1E9%wespvp@syntegra.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 4/4/04 11:43 PM, "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:

> OK, new patch applied that causes all threads to wait until the parent
> checks their thread-specific pointers. I ran 1000 tests and all passed.
> Hopefully it will good for you too.

I'll try to give it a test tonight.

>> Dumb question... Why would you not always use the _r functions if they
>> exist?
>
> Yes, we do use *_r functions in 7.5 if they exist, but in 7.4.X, I think
> we use the non-R if we can, though we actually just use getaddrinfo() in
> 7.4.X if it exists. Basically, the threading tests are still in flux,
> as you can see, in 7.4.X. It works, but it isn't 100% configure perfect
> yet.

I'm still not clear on this... The thread_test program checks to see if the
non-r functions are thread safe. If so, it directs you to set xxxx=yes in
the template file - I assume that causes the non-r function to be used. If
they are not thread safe, it directs you to use xxxx=no - which I assume
causes the *_r functions to be used. Why would you not *always* use the _r
functions if they exist, and only check for thread safety if the _r
functions do not exist?

Or, am I misunderstanding how the xxx=yes is used?

Wes

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2004-04-05 16:13:45 Re: thread_test.c problems
Previous Message Cees van de Griend 2004-04-05 15:10:53 Re: Mirroring tables from Oracle to Postgresql

Browse pgsql-hackers by date

  From Date Subject
Next Message Hans-Jürgen Schönig 2004-04-05 15:36:15 Re: Socket communication for contrib
Previous Message Bob.Henkel 2004-04-05 15:05:39 Re: Socket communication for contrib