Re: Avoid memory leaks during base backups

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Avoid memory leaks during base backups
Дата
Msg-id 20221020174707.hlx4mfz4lzm66o5y@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Avoid memory leaks during base backups  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Список pgsql-hackers
On 2022-Oct-20, Bharath Rupireddy wrote:

> I think elsewhere in the code we reset dangling pointers either ways -
> before or after deleting/resetting memory context. But placing them
> before would give us extra safety in case memory context
> deletion/reset fails. Not sure what's the best way. However, I'm
> nullifying the dangling pointers after deleting/resetting memory
> context.

I agree that's a good idea, and the patch looks good to me, but I don't
think asserting that they are null afterwards is useful.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/



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

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: Avoid memory leaks during base backups
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Decoupling antiwraparound autovacuum from special rules around auto cancellation