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 1gK3w6-000155-8A for pgsql-odbc@arkaria.postgresql.org; Tue, 06 Nov 2018 16:10:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gK3w4-00014r-7b for pgsql-odbc@arkaria.postgresql.org; Tue, 06 Nov 2018 16:10:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK3w3-00014h-MH for pgsql-odbc@lists.postgresql.org; Tue, 06 Nov 2018 16:10:36 +0000 Received: from srv2.inventec.ch ([78.46.83.118]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK3w0-0005FB-1k for pgsql-odbc@lists.postgresql.org; Tue, 06 Nov 2018 16:10:34 +0000 Received: from [10.1.121.82] (53.182.180.213.static.wline.lns.sme.cust.swisscom.ch [213.180.182.53]) by srv2.inventec.ch (Postfix) with ESMTPSA id 43EBC136CC97 for ; Tue, 6 Nov 2018 17:10:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=inventec.ch; s=default; t=1541520627; bh=86uehFL+UL7oAD783bDJK52Z2SK29RyB9RZH+vBCO9o=; h=Subject:To:References:From:Date:In-Reply-To:From; b=JWb92nNVihenN/wtrIW5XMsIUDvALG7zlLQzdAi800iQgdylnubbuU3NXbaxAtgbW u0ZmuuLWNGs9QOWFTf6HOa3XYse6oh6VNF+vbcuz+QVFfW6o3jHOmG0k2zNfO0NrE5 ynQ2FTiHkK4vMiLP9J5a44MGHG5U6vQ7MuHYljNo= Subject: Re: Out of memory while reading tuples To: pgsql-odbc@lists.postgresql.org References: <1bfac4d7-64de-e9a0-e1ba-744b546a1bfb@dream.email.ne.jp> From: Markus Angst Message-ID: Date: Tue, 6 Nov 2018 17:10:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1bfac4d7-64de-e9a0-e1ba-744b546a1bfb@dream.email.ne.jp> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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)? Regards Markus Angst