pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: 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 08:27:36 -0400
Message-ID: <20130604122736.GH5871@tamriel.snowman.net> (raw)
In-Reply-To: <E4CE60F76BA483anzai-naoya@mxu.nes.nec.co.jp>
References: <E4CE60F76BA483anzai-naoya@mxu.nes.nec.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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 
> 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

Attachments:

  signature.asc (application/pgp-signature, 197B) download

view thread (13+ messages)  latest in thread

Message-ID: <20130604122736.GH5871@tamriel.snowman.net>
Permalink:  ../20130604122736.GH5871@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20130604122736.GH5871@tamriel.snowman.net

 · 

reply

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, anzai-naoya@mxu.nes.nec.co.jp, iwaasa@mxs.nes.nec.co.jp
  Subject: Re: Memory-leak in BackgroundWriter(and Checkpointer)
  In-Reply-To: <20130604122736.GH5871@tamriel.snowman.net>
  References: <E4CE60F76BA483anzai-naoya@mxu.nes.nec.co.jp> <20130604122736.GH5871@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