Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UjlwH-0000w4-4C for pgsql-bugs@arkaria.postgresql.org; Tue, 04 Jun 2013 07:45:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UjlwF-0000jL-N2 for pgsql-bugs@arkaria.postgresql.org; Tue, 04 Jun 2013 07:45:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UjlwF-0000j7-32 for pgsql-bugs@postgresql.org; Tue, 04 Jun 2013 07:45:51 +0000 Received: from tyo202.gate.nec.co.jp ([210.143.35.52]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ujlvt-0003zz-PJ for pgsql-bugs@postgresql.org; Tue, 04 Jun 2013 07:45:49 +0000 Received: from mailgate3.nec.co.jp ([10.7.69.160]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id r547jOoN000065 for ; Tue, 4 Jun 2013 16:45:24 +0900 (JST) Received: (from root@localhost) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id r547jOh04598 for pgsql-bugs@postgresql.org; Tue, 4 Jun 2013 16:45:24 +0900 (JST) Received: from mail03.kamome.nec.co.jp (mail03.kamome.nec.co.jp [10.25.43.7]) by mailsv.nec.co.jp (8.13.8/8.13.4) with ESMTP id r547j9Qj017157 for ; Tue, 4 Jun 2013 16:45:24 +0900 (JST) Received: from shoin.jp.nec.com ([10.26.220.3] [10.26.220.3]) by mail03.kamome.nec.co.jp with ESMTP id BT-MMP-1173966; Tue, 4 Jun 2013 16:45:03 +0900 Received: from mxu.nes.nec.co.jp ([10.21.37.159] [10.21.37.159]) by mail.jp.nec.com with ESMTP; Tue, 4 Jun 2013 16:45:02 +0900 From: Naoya Anzai To: pgsql-bugs@postgresql.org Cc: Akio Iwaasa Subject: Memory-leak in BackgroundWriter(and Checkpointer) Date: Tue, 04 Jun 2013 16:45:01 +0900 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-MmPbC7ixXopmJ6YQHztbH" X-Mailer: HidemaruMail 5.26 (WinNT,501) Message-Id: X-Pg-Spam-Score: -4.7 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --Boundary-MmPbC7ixXopmJ6YQHztbH Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Description: Mail message body 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/ --Boundary-MmPbC7ixXopmJ6YQHztbH Content-Type: application/octet-stream; name="standby.patch" Content-Disposition: attachment; filename="standby.patch" Content-Transfer-Encoding: base64 LS0tIHNyYy9iYWNrZW5kL3N0b3JhZ2UvaXBjL3N0YW5kYnkuYy5vcmcJMjAx My0wNi0wNCAxNDoxMDoyNC4wMDAwMDAwMDAgKzA5MDAKKysrIHNyYy9iYWNr ZW5kL3N0b3JhZ2UvaXBjL3N0YW5kYnkuYy5uZXcJMjAxMy0wNi0wNCAxNDo0 ODo0NS4wMDAwMDAwMDAgKzA5MDAKQEAgLTg4Niw2ICs4ODYsOSBAQAogCWlm IChubG9ja3MgPiAwKQogCQlMb2dBY2Nlc3NFeGNsdXNpdmVMb2NrcyhubG9j a3MsIGxvY2tzKTsKIAorCXBmcmVlKGxvY2tzKTsKKworCiAJLyoKIAkgKiBM b2cgZGV0YWlscyBvZiBhbGwgaW4tcHJvZ3Jlc3MgdHJhbnNhY3Rpb25zLiBU aGlzIHNob3VsZCBiZSB0aGUgbGFzdAogCSAqIHJlY29yZCB3ZSB3cml0ZSwg YmVjYXVzZSBzdGFuZGJ5IHdpbGwgb3BlbiB1cCB3aGVuIGl0IHNlZXMgdGhp cy4K --Boundary-MmPbC7ixXopmJ6YQHztbH Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs --Boundary-MmPbC7ixXopmJ6YQHztbH--