Re: [HACKERS] Group clear xid can leak semaphore count

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [HACKERS] Group clear xid can leak semaphore count
Дата
Msg-id CA+TgmoYfJ6td1=Brd3m+HPme0XAQ=YHrryO5J6xm2TOOSUAP6A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Group clear xid can leak semaphore count  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Jan 5, 2017 at 4:48 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> I think we have run into this kind of issue before.  I wonder if
>> there's any way to insert some kind of a guard - e.g. detect at
>> backend startup time that the semaphore has a non-zero value and fix
>> it, issuing a warning along the way...  maybe something like:
>
> See the PGSemaphoreReset near the end of InitProcess.

Oh ho.  So the worst consequence of this is a backend-lifetime leak,
not a cluster-lifetime leak.  That's good, at least.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Michael Banck
Дата:
Сообщение: Re: [HACKERS] Replication/backup defaults
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] [COMMITTERS] pgsql: Fix possible crash reading pg_stat_activity.