| От | Tom Lane |
|---|---|
| Тема | Re: AW: F_SETLK is looking worse and worse... |
| Дата | |
| Msg-id | 27475.975513450@sss.pgh.pa.us обсуждение |
| Ответ на | AW: F_SETLK is looking worse and worse... (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>) |
| Список | pgsql-hackers |
Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at> writes:
>> BTW, it also seems like a good idea to reorder the postmaster's
>> startup operations so that the data-directory lockfile is checked
>> before trying to acquire the port lockfile, instead of after. That
>> way, in the common scenario where you're trying to start a second
>> postmaster in the same directory + same port, it'd fail cleanly
>> even if /tmp/.s.PGSQL.5432.lock had disappeared.
> Fine, sounds like reordering would eliminate the need for the socket lock
> anyway, no ?
Not at all. If you start two postmasters in different data directories
but with the same port number, you still have a socket-file conflict
that needs to be detected.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера