Missing LWLock protection in pgstat_reset_replslot()

Поиск
Список
Период
Сортировка
От Bertrand Drouvot
Тема Missing LWLock protection in pgstat_reset_replslot()
Дата
Msg-id ZeGq1HDWFfLkjh4o@ip-10-97-1-34.eu-west-3.compute.internal
обсуждение исходный текст
Ответы Re: Missing LWLock protection in pgstat_reset_replslot()  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-hackers
Hi hackers,

I think that pgstat_reset_replslot() is missing LWLock protection. Indeed, we
don't have any guarantee that the slot is active (then preventing it to be
dropped/recreated) when this function is executed.

Attached a patch to add the missing protection.

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Improve readability by using designated initializers when possible
Следующее
От: Bertrand Drouvot
Дата:
Сообщение: Re: Regardign RecentFlushPtr in WalSndWaitForWal()