pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: Markus Angst <mangst@inventec.ch>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Out of memory while reading tuples
Date: Tue, 6 Nov 2018 21:17:36 +0900
Message-ID: <1bfac4d7-64de-e9a0-e1ba-744b546a1bfb@dream.email.ne.jp> (raw)
In-Reply-To: <ee5853fd-3e85-e5fc-8dd9-095501b594a1@dream.email.ne.jp>
References: <ea322803-1214-8da5-c2cb-c81c6259daeb@inventec.ch>
	<ee5853fd-3e85-e5fc-8dd9-095501b594a1@dream.email.ne.jp>



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





view thread (7+ messages)  latest in thread

Message-ID: <1bfac4d7-64de-e9a0-e1ba-744b546a1bfb@dream.email.ne.jp>
Permalink:  ../1bfac4d7-64de-e9a0-e1ba-744b546a1bfb@dream.email.ne.jp/
Also on:    postgresql.org/message-id/1bfac4d7-64de-e9a0-e1ba-744b546a1bfb@dream.email.ne.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: h-inoue@dream.email.ne.jp, mangst@inventec.ch
  Subject: Re: Out of memory while reading tuples
  In-Reply-To: <1bfac4d7-64de-e9a0-e1ba-744b546a1bfb@dream.email.ne.jp>
  References: <ea322803-1214-8da5-c2cb-c81c6259daeb@inventec.ch> <ee5853fd-3e85-e5fc-8dd9-095501b594a1@dream.email.ne.jp> <1bfac4d7-64de-e9a0-e1ba-744b546a1bfb@dream.email.ne.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox