From: Mark Simonetti <marks@opalsoftware.co.uk>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Deallocation speed
Date: Tue, 13 Apr 2010 14:39:49 +0100
Message-ID: <4BC47425.40003@opalsoftware.co.uk> (raw)
In-Reply-To: <4BC46BB3.1070003@tpf.co.jp>
References: <4BC36597.7080501@opalsoftware.co.uk>
<4BC46BB3.1070003@tpf.co.jp>
On 13/04/2010 14:03, Hiroshi Inoue wrote:
> Mark Simonetti wrote:
>> Hi,
>> I'm currently working on a c++ project that uses the psqlodbc driver.
>>
>> I have a query that returns over 26000 rows, and about 45 columns.
>>
>> When it comes to closing the statement using SQLFreeStmt(hstmt,
>> SQL_CLOSE), the command seems to take about 70 seconds to return (on
>> a 3.16ghz processor!). This just doesn't seem right. Is there
>> something I may be missing?
>
> Aren't you turning on the mylog option?
>
> regards,
> Hiroshi Inoue
>
>
No, the log is not turned on. I turned it on temporarily to see if it
contained any useful information regarding the problem.
Interestingly, if I do not run the program from the Visual Studio IDE,
the problem goes away. The problem only seems to exist if I run the
program in the Visual Studio IDE in either Debug or Release mode.
If I enable UseDeclareFetch in the psqlODBC connection string the
problem also goes away, indicating it is indeed a something that occurs
while psqlODBC is freeing up memory from a large set of data - so maybe
it is Visual Studio is hooking into the memory allocation/deallocation
of the psqlODBC?
I can now at least work round the problem while using the IDE, and not
worry at all about the problem in production as it does not then occur.
I'm still surprised it happens though!
Mark.
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-odbc@postgresql.org
Cc: marks@opalsoftware.co.uk, inoue@tpf.co.jp
Subject: Re: Deallocation speed
In-Reply-To: <4BC47425.40003@opalsoftware.co.uk>
References: <4BC36597.7080501@opalsoftware.co.uk> <4BC46BB3.1070003@tpf.co.jp> <4BC47425.40003@opalsoftware.co.uk>
* 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