pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedDeallocation speed
3+ messages / 2 participants
[nested] [flat]
* Deallocation speed
@ 2010-04-12 18:25 Mark Simonetti <marks@opalsoftware.co.uk>
2010-04-13 13:03 ` Re: Deallocation speed Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 3+ messages in thread
From: Mark Simonetti @ 2010-04-12 18:25 UTC (permalink / raw)
To: pgsql-odbc
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?
I thought I'd ask first before I posted more details incase it is
something obvious.
Thanks,
Mark.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Deallocation speed
2010-04-12 18:25 Deallocation speed Mark Simonetti <marks@opalsoftware.co.uk>
@ 2010-04-13 13:03 ` Hiroshi Inoue <inoue@tpf.co.jp>
2010-04-13 13:39 ` Re: Deallocation speed Mark Simonetti <marks@opalsoftware.co.uk>
0 siblings, 1 reply; 3+ messages in thread
From: Hiroshi Inoue @ 2010-04-13 13:03 UTC (permalink / raw)
To: Mark Simonetti <marks@opalsoftware.co.uk>; +Cc: pgsql-odbc
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Deallocation speed
2010-04-12 18:25 Deallocation speed Mark Simonetti <marks@opalsoftware.co.uk>
2010-04-13 13:03 ` Re: Deallocation speed Hiroshi Inoue <inoue@tpf.co.jp>
@ 2010-04-13 13:39 ` Mark Simonetti <marks@opalsoftware.co.uk>
0 siblings, 0 replies; 3+ messages in thread
From: Mark Simonetti @ 2010-04-13 13:39 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2010-04-13 13:39 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-04-12 18:25 Deallocation speed Mark Simonetti <marks@opalsoftware.co.uk>
2010-04-13 13:03 ` Hiroshi Inoue <inoue@tpf.co.jp>
2010-04-13 13:39 ` Mark Simonetti <marks@opalsoftware.co.uk>
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