Re: Stats collection on Windows - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Stats collection on Windows
Date
Msg-id 29840.1144247436@sss.pgh.pa.us
Whole thread Raw
In response to Re: Stats collection on Windows  ("Magnus Hagander" <mha@sollentuna.net>)
Responses Re: Stats collection on Windows  ("stephen joseph butler" <stephen.butler@gmail.com>)
Re: Stats collection on Windows  (mark@mark.mielke.cc)
List pgsql-hackers
"Magnus Hagander" <mha@sollentuna.net> writes:
>> What happens if process Y goes away between the time you 
>> obtain a handle for it and the time you try to run this 
>> DuplicateHandle call?

> I can put together some quick test-code for this if you need me to?

Nah, it was just a rhetorical question meant to poke a hole in the
claim that Windows can avoid race conditions by using HANDLEs.

AFAICS, don't-reuse-PIDs-too-quick has exact analogs that Windows has
to solve by ensuring it doesn't reuse HANDLEs too quick.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: commit callback, request
Next
From: Tom Lane
Date:
Subject: Re: Tru64/Alpha problems