Re: pg11.1: dsa_area could not attach to segment

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: pg11.1: dsa_area could not attach to segment
Дата
Msg-id 20190214162010.GM30291@telsasoft.com
обсуждение исходный текст
Ответ на Re: pg11.1: dsa_area could not attach to segment  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы Re: pg11.1: dsa_area could not attach to segment  (Sergei Kornilov <sk@zsrv.org>)
Список pgsql-hackers
On Fri, Feb 15, 2019 at 01:12:35AM +1300, Thomas Munro wrote:
> The problem is that a DSM handle (ie a random number) can be reused
> for a new segment immediately after the shared memory object has been
> destroyed but before the DSM slot has been released.  Now two DSM
> slots have the same handle, and dsm_attach() can be confused by the
> old segment and give up.
> 
> Here's a draft patch to fix that.  It also clears the handle in a case
> where it wasn't previously cleared, but that wasn't strictly
> necessary.  It just made debugging less confusing.

Thanks.

Do you think that plausibly explains and resolves symptoms of bug#15585, too?

Justin


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: WAL insert delay settings
Следующее
От: Sergei Kornilov
Дата:
Сообщение: Re: pg11.1: dsa_area could not attach to segment