Re: Memory-leak in BackgroundWriter(and Checkpointer)

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Memory-leak in BackgroundWriter(and Checkpointer)
Дата
Msg-id 51ADEA34.4080704@vmware.com
обсуждение исходный текст
Ответ на Re: Memory-leak in BackgroundWriter(and Checkpointer)  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: Memory-leak in BackgroundWriter(and Checkpointer)  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-bugs
On 04.06.2013 15:27, Stephen Frost wrote:
> * Naoya Anzai (anzai-naoya@mxu.nes.nec.co.jp) wrote:
>> I've found a memory-leak bug in PostgreSQL 9.1.9's background
>> writer process.
>
> This looks legit, but probably not the right approach to fixing it.
> Looks like it'd be better to work out a way to use a static variable to
> reuse the same memory, ala what GetRunningTransactionData() does, and
> avoid having to do allocation while holding all the locks (or at least,
> not very often).

I can't get too excited about the overhead of a single palloc here. It's
a fairly heavy operation anyway, and only runs once per checkpoint. And
we haven't heard any actual complaints of latency hiccups with
wal_level=hot_standby.

- Heikki

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: BUG #8192: On very large tables the concurrent update with vacuum lag the hot_standby replica
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Memory-leak in BackgroundWriter(and Checkpointer)