Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKDQ6-0004Fg-Vv for pgsql-odbc@arkaria.postgresql.org; Wed, 07 Nov 2018 02:18:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKDQ4-000754-8S for pgsql-odbc@arkaria.postgresql.org; Wed, 07 Nov 2018 02:18:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKDQ4-00073O-2O for pgsql-odbc@lists.postgresql.org; Wed, 07 Nov 2018 02:18:12 +0000 Received: from mail02.asahi-net.or.jp ([202.224.55.14]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKDPv-0008Dg-8f for pgsql-odbc@postgresql.org; Wed, 07 Nov 2018 02:18:11 +0000 Received: from [192.168.0.5] (KD124208079206.ppp-bb.dion.ne.jp [124.208.79.206]) (Authenticated sender: GQ9H-INUE) by mail02.asahi-net.or.jp (Postfix) with ESMTPA id 224EC115223; Wed, 7 Nov 2018 11:17:59 +0900 (JST) Subject: Re: Out of memory while reading tuples To: Markus Angst References: <1bfac4d7-64de-e9a0-e1ba-744b546a1bfb@dream.email.ne.jp> From: "Inoue, Hiroshi" Cc: "pgsql-odbc@postgresql.org" Message-ID: <0935d1c8-e51b-08de-5bfc-ca8c7546ee45@dream.email.ne.jp> Date: Wed, 7 Nov 2018 11:17:59 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Antivirus: AVG (VPS 181106-8, 2018/11/07), Outbound message X-Antivirus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018/11/07 1:10, Markus Angst wrote: > Hi Hiroshi, > >>>> Postgres 10.4 64bit on Windows >>>> psqlODBC 10.03.0000 >>>> - Use Declare/Fetch is off >>>> - Cache size is 10'000'000 >>>> >>>> Issuing a simple select statement with Microsoft Access gives me the >>>> following ODBC error: >>>> >>>> "Out of memory while reading tuples.; memory allocation error??? (#4)" >>>> >>>> The statement returns 822701 rows (via JDBC), average row size is 100 >>>> bytes. >>>> >>>> On https://odbc.postgresql.org/docs/config.html it says: >>>> "Cache Size: When using cursors, this is the row size of the tuple >>>> cache. If not using cursors, this is how many tuples to allocate >>>> memory for at any given time. The default is 100 rows for either >>>> case." >>> >>> Hmm, it seems a documentation bug to me. >>> >>>    "If not using cursors, this is how many tuples to allocate memory at >>> first." >>> >>> seems correct. >> >> Oops, I was wrong. >> >>     "If not using cursors, this has no meaning." >> >> seems right. > > Thanks for your reply. What is the exact memory limit (and, out of > curiosity: why does it exist)? Psqlodbc itself doesn't have such a limitation. *Out of memory* means that psqlodbc requested a memory area using m(re)alloc function but the system replied that it's a tall order. BTW simple queries rather consume large amount of memory. Could you narrow down the conditions of your queries? regards, Hiroshi Inoue > > Regards > Markus Angst --- このメールは、AVG によってウイルス チェックされています。 http://www.avg.com