comp.lang.ada
 help / color / mirror / Atom feed
From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Ada & Postgresql
Date: Mon, 06 Sep 2004 14:56:36 +0200
Date: 2004-09-06T14:56:36+02:00	[thread overview]
Message-ID: <2q351cFqc2k5U1@uni-berlin.de> (raw)
In-Reply-To: <mailman.42.1094470564.31213.comp.lang.ada@ada-france.org>

Marius Amado Alves wrote:
> As noted, Gnu.Db.Postgres has a leak in the connection area. But has 
> controlled queries that automatically reclaim memory on finalization. 
> Pgsql has no leaks per se, but in its current version the types are not 
> controlled, so the user has to reclaim memory him self. Pick you poison.

The leak in Gnade is probably safe to ignore as long you know it exists. 
If you only use a connection during the app lifetime you're safe. 
Otherwise you have a 48 byte penalty for each one. It is very easy to 
patch, btw, so it is not really a deterrent.

> However, I think the main difference is in the style of the Ada spec. 
> Unfortunately I'm not able to look at Gnu.Db.Postgres right now [2], but 
> from what I recall from my examination of the landscape some time ago, 
> which has probably included Gnu.Db.Postgres, they are much longer and 
> harder to use than Pgsql.

This may have changed, since my inspection of Gnade shows an almost 
equal simplicity between it and Pgsql. One call to connect, one call 
with the textual SQL query, and a result type accessible by indexes.

The ODBC thin binding is another kind of beast, as already noted.

> [2] The Sourceforge site seems to only provide RPM files. How do I read 
> this in my Windows XP laptop? Also, when I click the version number on 
> the site (hoping to browse the files), I get XML garbage.

Check the source distribution, it has .tgz file and furthermore it 
includes the examples, which the linux binary (don't know about the 
windows one) one doesn't.

Or take this link

http://sourceforge.net/project/showfiles.php?group_id=23045&package_id=19410

to reach the binary installable for windows.



  reply	other threads:[~2004-09-06 12:56 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-03 17:09 Ada & Postgresql Alex R. Mosteo
2004-09-03 20:51 ` Adrian Knoth
2004-09-04 11:41   ` Marius Amado Alves
2004-09-04 13:50 ` Pascal Obry
2004-09-06  8:42   ` Alex R. Mosteo
2004-09-06  9:13     ` Alex R. Mosteo
2004-09-06  9:44       ` Marius Amado Alves
2004-09-06 10:10         ` Alex R. Mosteo
2004-09-06 10:57           ` Marius Amado Alves
2004-09-06 11:37             ` Alex R. Mosteo
2004-09-06 11:54               ` Marius Amado Alves
     [not found]               ` <413C4FFE.1010105@netcabo.pt>
2004-09-06 12:03                 ` Marius Amado Alves
2004-09-06 12:43                 ` Marius Amado Alves
2004-09-06 12:54                   ` Martin Dowie
2004-09-06 13:17                     ` Marius Amado Alves
2004-09-06 13:19                   ` Dmitry A. Kazakov
2004-09-06 14:33                     ` Marius Amado Alves
2004-09-06 18:00                       ` Dmitry A. Kazakov
2004-09-06 15:18                   ` Jean-Marc Bourguet
2004-09-06 11:36           ` Marius Amado Alves
2004-09-06 12:56             ` Alex R. Mosteo [this message]
2004-09-06 13:12               ` Marius Amado Alves
2004-09-06 15:20                 ` Björn Persson
     [not found]       ` <413C318E.9050709@netcabo.pt>
2004-09-06 10:00         ` Marius Amado Alves
2004-09-06 10:27           ` Alex R. Mosteo
2004-09-06 11:34     ` Dmitry A. Kazakov
2004-09-07  7:02     ` Jerry van Dijk
2004-09-07  8:31       ` Alex R. Mosteo
2004-09-06 15:36 ` Wojtek Narczynski
2004-09-17  1:42   ` Warren W. Gay VE3WWG
2004-09-25 15:26     ` Michael Erdmann
2004-09-25 19:03       ` Pascal Obry
2004-09-29 20:56         ` Warren W. Gay VE3WWG
2004-09-29 21:11           ` Ludovic Brenta
2004-09-30  9:56           ` Benjamin Ketcham
2004-10-04 16:09             ` Warren W. Gay VE3WWG
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox