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 1gK0Ik-0006GB-IF for pgsql-odbc@arkaria.postgresql.org; Tue, 06 Nov 2018 12:17:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gK0Ii-0004zO-Ps for pgsql-odbc@arkaria.postgresql.org; Tue, 06 Nov 2018 12:17:44 +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 1gK0Ii-0004zH-Jn for pgsql-odbc@lists.postgresql.org; Tue, 06 Nov 2018 12:17:44 +0000 Received: from mail02.asahi-net.or.jp ([202.224.55.14]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gK0If-0004rj-2H for pgsql-odbc@postgresql.org; Tue, 06 Nov 2018 12:17:44 +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 27C581155F0; Tue, 6 Nov 2018 21:17:36 +0900 (JST) Subject: Re: Out of memory while reading tuples From: "Inoue, Hiroshi" To: Markus Angst Cc: pgsql-odbc@postgresql.org References: Message-ID: <1bfac4d7-64de-e9a0-e1ba-744b546a1bfb@dream.email.ne.jp> Date: Tue, 6 Nov 2018 21:17:36 +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-1, 2018/11/06), Outbound message X-Antivirus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018/11/06 13:21, Inoue, Hiroshi wrote: > Hi Markus, > > On 2018/11/06 7:34, Markus Angst wrote: >> Hi, >> >> 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. > > So "Cache size" doesn't have much meaning if *Use Declare/Fetch* is off. > I think there's no way to avoid *Out of memory while reading tuples* > errors > in *Use Declare/Fetch* off mode unfortunately. > > regards, > Hiroshi inoue > >> >> >> Setting the field to the aforementioned 10'000'000 does not help. Is >> this value ignored? Is there a maximum value for Cache size? How is >> the tuple size calculated? >> >> Setting Use Declare/Fetch is not an option. Access can have severe >> problems with this setting; an experience I don't want to repeat. >> >> My plan B would be to select the data in several pieces, which would >> be much more complicated in this particular case. >> >> What else can I do? >> >> Thanks and best regards >> Markus Angst --- このメールは、AVG によってウイルス チェックされています。 http://www.avg.com