From: Byron Nikolaidis <byronn@insightdist.com>
To: Denis Sbragion <sbragion@milan.crosswinds.net>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] ODBC Memory leak
Date: Thu, 15 Apr 1999 18:54:01 -0400
Message-ID: <37166E09.E02332D8@insightdist.com> (raw)
References: <3.0.6.32.19990413105717.008787e0@MBox.InfoTecna.com>
Denis Sbragion wrote:
> Hello,
>
> It looks like the postgres ODBC (6.40.0005) leaks a lot of memory. Under a
> heavy usage test the memory occupation increase up to 2 Mb every 30
> seconds, until everything crashes. To be sure I did exactly the same test
> using the MS SQL Server ODBC driver. This driver showed no memory leakage
> at all. Anybody can confirm this?
>
Whoa! Well, nothing in the core driver has been changed in the version 0005
release, certainly nothing related to memory usage/allocation. In fact,
nothing has been changed along these lines since like version 6.30.0250 or
something.
Something to keep in mind though, if the driver is *NOT* using the "Use
Declare/Fetch option", then the driver will attempt to store the entire query
results in its memory. Is it possible your usage test would have done a huge
query or something like that? The Use Declare/Fetch option only allocates a
cache of 100 rows (by default) and never goes over that so huge queries
wouldn't bother it.
If there is a memory problem like this in the driver, I would like to know
more about your test so I can track it down. If so, you might try changing
some options (such as the Declare/Fetch) and see if it changes anything.
Byron
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: byronn@insightdist.com, sbragion@milan.crosswinds.net
Subject: Re: [INTERFACES] ODBC Memory leak
In-Reply-To: <37166E09.E02332D8@insightdist.com>
* 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