Re: JDBC driver's (non-)handling of InputStream:s

Поиск
Список
Период
Сортировка
От Peter Schuller
Тема Re: JDBC driver's (non-)handling of InputStream:s
Дата
Msg-id 200403301255.58193.peter.schuller@infidyne.com
обсуждение исходный текст
Ответ на Re: JDBC driver's (non-)handling of InputStream:s  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
Hello,

> It would be great if you could supply a test case which exhibits this
> behaviour.

I can probably do that relatively easily (though of course subject to the
behavior of the VM memory manager), though given Oliver Jowett's response it
seems pretty obvious what is happening - allocating a 5 MB byte array is
failing and/or the byte array is constructed in a tight loop allocating
incrementally larger arrays until the data fits.

Allocating such large arrays is bound to be unreliable in any case, so as long
as that is what's happening I fully understand it and there's probably not
much to be done...

--
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>'
Key retrieval: Send an E-Mail to getpgpkey@scode.org
E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Andrea Aime
Дата:
Сообщение: Re: V3 protocol, batch statements and binary transfer
Следующее
От: Alan Stange
Дата:
Сообщение: Re: V3 protocol, batch statements and binary transfer