X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id B1EDC9DC885 for ; Sun, 26 Mar 2006 16:27:16 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 83531-04 for ; Sun, 26 Mar 2006 16:27:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from iwsbsrv1.InterWorksok.com (mail.interworksok.com [205.162.236.173]) by postgresql.org (Postfix) with ESMTP id AD07D9DC880 for ; Sun, 26 Mar 2006 16:27:14 -0400 (AST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: psqlodbc 07.03.0261 Memory Leak? Date: Sun, 26 Mar 2006 14:27:08 -0600 Message-ID: <22CFEEFF5C5D60429D6B0572DB26625928FD7C@iwsbsrv1.InterWorksok.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: psqlodbc 07.03.0261 Memory Leak? thread-index: AcZN0qHbioK1+abrQRaFk3IKgdha0gDOLmhwAAINJEA= From: "Daniel Holm" To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.098 required=5 tests=[AWL=0.098] X-Spam-Score: 0.098 X-Spam-Level: X-Archive-Number: 200603/173 X-Sequence-Number: 7459 One other thing I didn't mention, is that I set the cache size to 1 for this operation. -----Original Message----- From: Daniel Holm=20 Sent: Sunday, March 26, 2006 1:45 PM To: pgsql-odbc@postgresql.org Subject: psqlodbc 07.03.0261 Memory Leak? I'm copying data from a table of over 100,000 rows in Microsoft SQL server. This table contains a column of type "Image". I am using a DTS package and have mapped that column over to a column of type "bytea". The stable 8.x driver won't even begin to copy the data, so I have attempted to use the experimental driver (07.03.0261) to do my copying. It works great, except for the excessive memory usage. The memory usage constantly climbs throughout the execution. I can run about 2000 rows quickly - then it slows down considerably (probably switches to using virtual memory). Around 7,000 rows it finally dies and prints this for the first error: "Query buffer allocate error in copy_statement_with_parameters" And then second: "Out of memory in PGAPI_PutData (3)" 1) Is there anything more I can provide to assist in locating the cause of this leak? 2) Is there a better way to transfer these 100,000 rows from Microsoft SQL to Postgres 8.1 instead of using a DTS package? The memory issue could be from there. Thanks in advance for any assistance; you all have been wonderful so far in this process! -Daniel Holm