From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2efc07c562a92932 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Ada & Postgresql Date: Mon, 06 Sep 2004 12:10:29 +0200 Message-ID: <2q2r9tFqihj7U1@uni-berlin.de> References: <2prmojFo9eo1U1@uni-berlin.de> <2q2m4sFqobhgU1@uni-berlin.de> <2q2nvhFq4qqdU1@uni-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 6xErf7/+SKeLgXfMhWT06gdNDCZ8Yo9+ICXsHU86TNYY3oxJo= User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:3363 Date: 2004-09-06T12:10:29+02:00 List-Id: Marius Amado Alves wrote: >> Customary inspection & testing of the Gnu.Db.Postgresql shows a memory >> leak in the Database type. Some internal protected type isn't being >> freed. > > > Note package Pgsql includes a procedure Forget for this effect. Ummm, I see no leak in the Gnade management of queries. I think they are transparently forgotten (on finalization). It is necessary in Pgsql to explicitly forget any returned result? > > http://www.liacc.up.pt/~maa/files/Pgsql.zip > > When Ada 2005 comes I think I'll make the connection type controlled to > automatically call Forget on finalization. I didn't do that yet because > of the unwarranted constraints Ada 95 puts on controlled types. Could you please elaborate on these unwarranted constraints? I suppose this is related to my previous paragraph and the difference between Pgsql and Gnade. Thanks, A. Mosteo.