pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: li_gang02@sina.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6366: ECPG connection Memory Leak when using Host Variables
Date: Thu, 5 Jan 2012 14:14:05 +0100
Message-ID: <20120105131405.GA11590@feivel.credativ.lan> (raw)
In-Reply-To: <E1RgUQT-0006v7-6U@wrigleys.postgresql.org>
References: <E1RgUQT-0006v7-6U@wrigleys.postgresql.org>

> ** 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 = 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 DECLARE
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. 

Michael
-- 
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ça Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL



view thread (2+ messages)

Message-ID: <20120105131405.GA11590@feivel.credativ.lan>
Permalink:  ../20120105131405.GA11590@feivel.credativ.lan/
Also on:    postgresql.org/message-id/20120105131405.GA11590@feivel.credativ.lan

 · 

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: meskes@postgresql.org, li_gang02@sina.com
  Subject: Re: BUG #6366: ECPG connection Memory Leak when using Host Variables
  In-Reply-To: <20120105131405.GA11590@feivel.credativ.lan>
  References: <E1RgUQT-0006v7-6U@wrigleys.postgresql.org> <20120105131405.GA11590@feivel.credativ.lan>

* 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