Re: parallel restore fixes - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: parallel restore fixes
Date
Msg-id 49B5C612.90505@dunslane.net
Whole thread Raw
In response to Re: parallel restore fixes  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: parallel restore fixes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>   
>> Tom Lane wrote:
>>     
>>> Actually, why bother with init_dump_utils at all?
>>>       
>
>   
>> Well, the Windows reference I have suggests TlsAlloc() needs to be 
>> called early in the initialisation process ...
>>     
>
> How early is early?  The proposed call sites for init_dump_utils seem
> already long past the point where any libc-level infrastructure would
> think it is "initialization" time.
>   

Well, I think at least it needs to be done where other threads  won't be 
calling it at the same time.

cheers

andrew




pgsql-hackers by date:

Previous
From: KaiGai Kohei
Date:
Subject: Re: Updates of SE-PostgreSQL 8.4devel patches (r1704)
Next
From: "Dickson S. Guedes"
Date:
Subject: Re: Sampling Profler for Postgres