From: Stephen Frost <sfrost@snowman.net>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: Naoya Anzai <anzai-naoya@mxu.nes.nec.co.jp>
Cc: pgsql-bugs@postgresql.org
Cc: Akio Iwaasa <iwaasa@mxs.nes.nec.co.jp>
Subject: Re: Memory-leak in BackgroundWriter(and Checkpointer)
Date: Tue, 4 Jun 2013 09:49:27 -0400
Message-ID: <20130604134927.GI5871@tamriel.snowman.net> (raw)
In-Reply-To: <20130604132758.GC2854@alap2.anarazel.de>
References: <E4CE60F76BA483anzai-naoya@mxu.nes.nec.co.jp>
<20130604122736.GH5871@tamriel.snowman.net>
<51ADEA34.4080704@vmware.com>
<20130604132758.GC2854@alap2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
* Andres Freund (andres@2ndquadrant.com) wrote:
> On 2013-06-04 16:23:00 +0300, Heikki Linnakangas wrote:
> > 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.
Perhaps, but we don't always hear about things that we should- this long
standing memory leak being one of them.
> Seems more consistent with the rest of the code too. But anyway, I am
> fine with fixing it either way.
And this is really the other point- having LogStandbySnapshot() need to
clean up after GetRunningTransactionLocks() but not
GetRunningTransactionData() would strike me as very odd.
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 197B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: sfrost@snowman.net, andres@2ndquadrant.com, hlinnakangas@vmware.com, anzai-naoya@mxu.nes.nec.co.jp, iwaasa@mxs.nes.nec.co.jp
Subject: Re: Memory-leak in BackgroundWriter(and Checkpointer)
In-Reply-To: <20130604134927.GI5871@tamriel.snowman.net>
References: <E4CE60F76BA483anzai-naoya@mxu.nes.nec.co.jp> <20130604122736.GH5871@tamriel.snowman.net> <51ADEA34.4080704@vmware.com> <20130604132758.GC2854@alap2.anarazel.de> <20130604134927.GI5871@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox