Re: F_SETLK is looking worse and worse...

Поиск
Список
Период
Сортировка
От Matthew Kirkwood
Тема Re: F_SETLK is looking worse and worse...
Дата
Msg-id Pine.LNX.4.10.10011291312280.19733-100000@sphinx.mythic-beasts.com
обсуждение исходный текст
Ответ на F_SETLK is looking worse and worse...  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: F_SETLK is looking worse and worse...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, 28 Nov 2000, Tom Lane wrote:

> That is, if the socket file name is /tmp/.s.PGSQL.5432, we'd create a
> plain file /tmp/.s.PGSQL.5432.lock

> I can only think of one scenario where this is worse than what we have
> now: if someone is running a /tmp-directory-sweeper that is bright
> enough not to remove socket files, it would still zap the interlock
> file, thus potentially allowing a second postmaster to take over the
> socket file.  This doesn't seem like a mainstream problem though.

Surely the lock file could easily go somewhere other than
/tmp, since it won't be breaking existing setups?

Matthew.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Matthew Kirkwood
Дата:
Сообщение: Re: 8192 BLCKSZ ?
Следующее
От: mlw
Дата:
Сообщение: Re: 8192 BLCKSZ ?