From: Naoya Anzai <anzai-naoya@mxu.nes.nec.co.jp>
To: pgsql-bugs@postgresql.org
Cc: Akio Iwaasa <iwaasa@mxs.nes.nec.co.jp>
Subject: Memory-leak in BackgroundWriter(and Checkpointer)
Date: Tue, 04 Jun 2013 16:45:01 +0900
Message-ID: <E4CE60F76BA483anzai-naoya@mxu.nes.nec.co.jp> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi All.
I've found a memory-leak bug in PostgreSQL 9.1.9's background
writer process.
When following parameter is set, it occurs every time CHECKPOINT runs.
wal_level = hot_standby
I've also confirmed REL9_1_STABLE and it is not fixed yet.
In additional, it also occurs in 9.3.beta1's checkpointer.
I created a patch (attached file) for 9.1.9,
so could anyone confirm?
Best regards.
---
Naoya Anzai
NEC Soft,Ltd.
http://www.necsoft.com/eng/
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugsAttachments:standby.patch (application/octet-stream, 408B) download--- src/backend/storage/ipc/standby.c.org 2013-06-04 14:10:24.000000000 +0900+++ src/backend/storage/ipc/standby.c.new 2013-06-04 14:48:45.000000000 +0900@@ -886,6 +886,9 @@
if (nlocks > 0)
LogAccessExclusiveLocks(nlocks, locks);
+ pfree(locks);++
/*
* Log details of all in-progress transactions. This should be the last
* record we write, because standby will open up when it sees this.
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: anzai-naoya@mxu.nes.nec.co.jp, iwaasa@mxs.nes.nec.co.jp
Subject: Re: Memory-leak in BackgroundWriter(and Checkpointer)
In-Reply-To: <E4CE60F76BA483anzai-naoya@mxu.nes.nec.co.jp>
References: <E4CE60F76BA483anzai-naoya@mxu.nes.nec.co.jp>
* 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