Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7CCB3632EEB for ; Fri, 21 May 2010 00:19:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 53882-07 for ; Fri, 21 May 2010 03:19:25 +0000 (UTC) X-Greylist: from auto-whitelisted 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 2EC506326C6 for ; Fri, 21 May 2010 00:19:24 -0300 (ADT) Received: (qmail 14838 invoked by uid 512); 21 May 2010 03:19:21 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.252) by sd2.tpf-fw-c.co.jp with SMTP; 21 May 2010 03:19:21 -0000 Message-ID: <4BF5FBA8.10709@tpf.co.jp> Date: Fri, 21 May 2010 12:19:04 +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: Jaime Casanova CC: pgsql-odbc@postgresql.org Subject: Re: memory leak in psqlodb 08.04.0200 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.242 tagged_above=-10 required=5 tests=BAYES_00=-1.9, DNS_FROM_RFC_BOGUSMX=1.668, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/32 X-Sequence-Number: 10279 Jaime Casanova wrote: > Hi, > > When i use DTS from mssql to export data to postgres and the table is >> 1million i get an error: Out of memory while reading tuples. > I'm trying to understand the issue so i changed > log_min_duration_statement=-1 in postgresql.conf to get all statements > executed and i get > BEGIN; INSERT one row sent from the dts RETURNING ctid; SELECT WHERE > ctid; COMMIT; > > and when i select count(*) from table i get the rows it migrated until > now... so, obviously the psqlODBC should be free'ing the memory it > used for that tuple but instead when i see the Task Manager in windows > i see how the memory is going down until it gets to zero... > > so this should be a memory leak, no? how can i trace it in the psqlODBC? Could you please try the drivers on testing for 8.4.0201 at http://www.geocities.jp/inocchichichi/psqlodbc/index.html ? regards, Hiroshi Inoue