Re: Cancel/Kill backend functions

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Cancel/Kill backend functions
Дата
Msg-id 40B63D4B.8020108@samurai.com
обсуждение исходный текст
Ответ на Re: Cancel/Kill backend functions  ("Magnus Hagander" <mha@sollentuna.net>)
Ответы Re: Cancel/Kill backend functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Magnus Hagander wrote:
> You'd actually need to get a pid *reuse* during that short time.

That isn't so implausible on a system which assigns PIDs randomly.
Holding the SInvalLock doesn't remove the race condition, but it
makes it less likely to occur for essentially very little cost.

> Bottom line -  while maybe slightly more correcet, not sure it's
> necessary.

IMHO it's worth doing.

-Neil


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

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Cancel/Kill backend functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: win32 locale fixes