Re: Memory-leak in BackgroundWriter(and Checkpointer) - Mailing list pgsql-bugs

From Stephen Frost
Subject Re: Memory-leak in BackgroundWriter(and Checkpointer)
Date
Msg-id 20130604122736.GH5871@tamriel.snowman.net
Whole thread Raw
In response to Memory-leak in BackgroundWriter(and Checkpointer)  (Naoya Anzai <anzai-naoya@mxu.nes.nec.co.jp>)
Responses Re: Memory-leak in BackgroundWriter(and Checkpointer)
List pgsql-bugs
* Naoya Anzai (anzai-naoya@mxu.nes.nec.co.jp) wrote:
> I've found a memory-leak bug in PostgreSQL 9.1.9's background=20
> 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).

    Thanks,

        Stephen

pgsql-bugs by date:

Previous
From: Amit Kapila
Date:
Subject: Re: BUG #8198: ROW() literals not supported in an IN clause
Next
From: Federico Campoli
Date:
Subject: Re: BUG #8192: On very large tables the concurrent update with vacuum lag the hot_standby replica