| От | Tom Lane |
|---|---|
| Тема | Re: 8.3 .4 + Vista + MingW + initdb = ACCESS_DENIED |
| Дата | |
| Msg-id | 24087.1224091591@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: 8.3 .4 + Vista + MingW + initdb = ACCESS_DENIED (Andrew Dunstan <andrew@dunslane.net>) |
| Список | pgsql-hackers |
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> That can only be a solution if postmaster child processes will inherit
>> the lock.
> I don't think so, no. But we could have the children explicitly acquire
> a shared lock, so if the postmaster at startup tried to grab an
> exclusive lock that would fail if any child were still alive.
We've been through this before. That is not an acceptable substitute
because there's a race condition: a new child might have been launched
but not yet acquired the lock. We need the lock to actually be
inherited across the fork/exec so there is no window where it's not held.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера