Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 67AD46339EB for ; Tue, 13 Apr 2010 10:31:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 72719-06 for ; Tue, 13 Apr 2010 13:30:49 +0000 (UTC) X-Greylist: delayed 00:17:04.399774 by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 8B26A6327C2 for ; Tue, 13 Apr 2010 10:24:53 -0300 (ADT) Received: (qmail 17247 invoked by uid 512); 13 Apr 2010 13:03:53 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 13 Apr 2010 13:03:53 -0000 Received: from unknown (HELO ?192.168.24.52?) (183.76.20.107) by sd.tpf.co.jp with SMTP; 13 Apr 2010 13:03:53 -0000 Message-ID: <4BC46BB3.1070003@tpf.co.jp> Date: Tue, 13 Apr 2010 22:03:47 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Mark Simonetti CC: pgsql-odbc@postgresql.org Subject: Re: Deallocation speed References: <4BC36597.7080501@opalsoftware.co.uk> In-Reply-To: <4BC36597.7080501@opalsoftware.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.951 tagged_above=-10 required=5 tests=AWL=-0.441, BAYES_05=-0.5, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/12 X-Sequence-Number: 10236 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