| От | Tom Lane |
|---|---|
| Тема | Re: postmaster.pid |
| Дата | |
| Msg-id | 19710.1093442283@sss.pgh.pa.us обсуждение |
| Ответ на | Re: postmaster.pid ("Magnus Hagander" <mha@sollentuna.net>) |
| Список | pgsql-hackers-win32 |
"Magnus Hagander" <mha@sollentuna.net> writes:
> But sure, we don't really care if it's a postmaster. Then OpenProcess()
> is probably the best way, yes.
Au contraire!! One of the problems with the Unix implementation is that
you *can't* tell for sure if the target process is a postmaster. See
past discussions about how startup occasionally fails because we get
fooled by the PID mentioned in postmaster.pid now belonging to pg_ctl or
some other Postgres-owned process.
This is a place where the Windows version can actually be better than
the Unix one. Please fix it and stop imagining that your charter is to
duplicate a particular Unix syscall bug-for-bug.
regards, tom lane
В списке pgsql-hackers-win32 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера