Re: Spurious pgstat_drop_replslot() call

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Spurious pgstat_drop_replslot() call
Дата
Msg-id Ze_p-hmD_yFeVYXg@paquier.xyz
обсуждение исходный текст
Ответ на Re: Spurious pgstat_drop_replslot() call  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Spurious pgstat_drop_replslot() call  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Список pgsql-hackers
On Mon, Mar 11, 2024 at 04:15:40PM +0900, Michael Paquier wrote:
> That's a slight change in behavior, unfortunately, and it cannot be
> called a bug as this improves the visibility of the stats after an
> invalidation, so this is not something that can be backpatched.

I've looked again at that and that was OK on a second look.  May I
suggest the attached additions with LWLockHeldByMeInMode to make sure
that the stats are dropped and created while we hold
ReplicationSlotAllocationLock?
--
Michael

Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Regardign RecentFlushPtr in WalSndWaitForWal()
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: UUID v7