Re: 8.3.5: Crash in CountActiveBackends() - lockless race?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 8.3.5: Crash in CountActiveBackends() - lockless race?
Дата
Msg-id 10088.1238424684@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 8.3.5: Crash in CountActiveBackends() - lockless race?  (Marko Kreen <markokr@gmail.com>)
Ответы Re: 8.3.5: Crash in CountActiveBackends() - lockless race?
Список pgsql-hackers
Marko Kreen <markokr@gmail.com> writes:
> Well, that was also my theory.  But my point is that such lockless code
> should be written in more stricter way so it's effects can be clearly
> deduced.

We don't really care that much, for what CountActiveBackends is used for.

>  Or at least such roundabout effects should be commented -
> "Ancient pointer here would still point to PGPROC struct".

Agreed, the comment should mention all of these possibilities.
        regards, tom lane


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

Предыдущее
От: Bernd Helmle
Дата:
Сообщение: Re: Error message and infinite date and timestamp conversion in XML
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: psql \d* and system objects