Re: Stats collection on Windows
| От | Tom Lane |
|---|---|
| Тема | Re: Stats collection on Windows |
| Дата | |
| Msg-id | 27481.1144245956@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Stats collection on Windows ("Magnus Hagander" <mha@sollentuna.net>) |
| Ответы |
Re: Stats collection on Windows
Re: Stats collection on Windows |
| Список | pgsql-hackers |
"Magnus Hagander" <mha@sollentuna.net> writes:
>> HANDLE is process local? That is worse then, because then
>> there's no guarentee that each process will see a different
>> identifier.
> HANDLE is process local. What you need to do is run DuplicateHandle() on
> it specifying it should "also be valid for process Y" (for which you
> need a HANDLE opened, in this case the stats collector). This will give
> you a new handle whichi s valid in the *target process*, but it is *not*
> valid in your own process.
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?
regards, tom lane
В списке pgsql-hackers по дате отправления: