Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id E883053F45 for ; Thu, 5 Jan 2012 09:13:35 -0400 (AST) Received: from gauss.credativ.com ([93.94.130.89]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rin8P-0002aK-4M for pgsql-bugs@postgresql.org; Thu, 05 Jan 2012 13:13:34 +0000 Received: from feivel (fw-front.credativ.com [87.193.134.200]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mme@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 76253550132; Thu, 5 Jan 2012 14:13:19 +0100 (CET) Received: by feivel (Postfix, from userid 1000) id 347DF9F1CE; Thu, 5 Jan 2012 14:14:05 +0100 (CET) Date: Thu, 5 Jan 2012 14:14:05 +0100 From: Michael Meskes To: li_gang02@sina.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6366: ECPG connection Memory Leak when using Host Variables Message-ID: <20120105131405.GA11590@feivel.credativ.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/35 X-Sequence-Number: 32102 > ** PostgreSQL bug on ECPG connection when using Host Variables Thanks for bringing this up. I just commited a fix into our git. > ** in memory leak (TotalSize =3D n * sizeof(struct var_list), = where n > is maxium > ** of Host Variables used in a DB Connection). The actual number is quite a bit lower because only variables used in DEC= LARE statements directly get stored in that list. > ** Bug Fixing: > ** A new function should be added, details as folloging I integrated this into the connection closing code.=20 Michael --=20 Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org Jabber: michael.meskes at googlemail dot com VfL Borussia! For=C3=A7a Bar=C3=A7a! Go SF 49ers! Use Debian GNU/Linux, P= ostgreSQL