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 9CF659DC86D for ; Tue, 13 Dec 2005 13:03:43 -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 07330-02 for ; Tue, 13 Dec 2005 13:03:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.fgscapital.com (fw.fgscapital.com [82.110.72.114]) by postgresql.org (Postfix) with ESMTP id 6E0929DC874 for ; Tue, 13 Dec 2005 13:03:37 -0400 (AST) Received: (qmail 93189 invoked by uid 1003); 13 Dec 2005 17:03:34 -0000 Received: from filip@wuytack.net by mail.fgscapital.com by uid 89 with qmail-scanner-1.21 (clamdscan: 0.70-rc. spamassassin: 2.63. Clear:RC:1(192.168.0.116):. Processed in 0.024756 secs); 13 Dec 2005 17:03:34 -0000 Received: from unknown (HELO ?127.0.0.1?) (fwuytack@fgscapital.com@192.168.0.116) by 192.168.110.115 with SMTP; 13 Dec 2005 17:03:34 -0000 Message-ID: <439EFEE3.2000509@wuytack.net> Date: Tue, 13 Dec 2005 17:03:31 +0000 From: Filip Wuytack User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Tomas_Sk=E4re?= CC: Ludek Finstrle , pgsql-odbc@postgresql.org Subject: Re: Out of memory troubles with version 8.01.01.02 References: <439E948B.1080703@wuytack.net> <20051213141808.GA5689@soptik.pzkagis.cz> <80zmn5ggyt.fsf@junk.nocrew.org> In-Reply-To: <80zmn5ggyt.fsf@junk.nocrew.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/157 X-Sequence-Number: 6636 Hi all, Thank you all for your prompt replies. I tried about all the versions I could find (ranging from 7.3.200 to till 8.1.1.03) and they all gave the same trouble. Then I tried the latest snapshot, 8.1.1.04,and youhouuuuu, it worked!!! Me a very happy man. I'm not sure what you did we these dlls, but I just pulled in a +/- 25 milj row table in sas through the odbc (is against a postgresql 8.0.3 amd64 on freebsd 6.0) and it worked perfectly. Memory consumption never went over 45M in windows. The table takes up 8.6GB of harddisk space in windows. Just for future references (in case someone ever has the same error), I used the following settings: PostgreSQL ANSI with the following options: - disable genetic optimizer - KSQO - Recognize Uniq Index - Use Declare/Fetch - Inknown sizes: max - Bools as char - maxvarchar: 254 - cache: 100 - max long varchar: 8190 - systableprefixes: dd_; - show system tables - LF <-> CR/LF - row versioning - int8 as default - protocol >= 6.4 - OID options: show column & fake index Thanks again, Filip Tomas Skäre wrote: > Ludek Finstrle writes: > > >> I know about this limitation. There is problem ODBC keep all rows >> in memory (+ result from libpq = 2 x result). Please try check >> Use Declare/Fetch option. There is no twice result in memory in psqlODBC. >> If it doesn't help you can try older releases which mayde do not do this. >> Please try 8.00.X or even 7.03.209 (if you find it somewhere). >> I know we're suggesting 8.01.X but few people work with so big >> datasets. >> > > Does it keep everything in memory when using cursors too? > > > Tomas > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly >