Re: windows shared memory error - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: windows shared memory error
Date
Msg-id 49FEF832.30802@dunslane.net
Whole thread Raw
In response to Re: windows shared memory error  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Tom Lane wrote:
> I still think there's absolutely no evidence suggesting that a variable
> backoff is necessary.  Given how little this code is going to be
> exercised in the real world, how long will it take till we find out
> if you get it wrong?  Use a simple retry loop and be done with it.
>
>             
>   

Why should a 1 second delay between CloseHandle() and 
CreateFileMapping() be enough now when it was not enough 1 second ago? 
If the event we needed an offset from were outside the loop I'd agree 
with you.

cheers

andrew


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: "could not reattach to shared memory" captured in buildfarm
Next
From: Magnus Hagander
Date:
Subject: Re: windows shared memory error