Re: Cannot Retrieve Binary Data

Поиск
Список
Период
Сортировка
От patrick
Тема Re: Cannot Retrieve Binary Data
Дата
Msg-id 2302fe0996e9f6e79e369b747b35385a@freeshell.org
обсуждение исходный текст
Ответ на Re: Cannot Retrieve Binary Data  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
On 13 Mar 2005, at 13:36, Oliver Jowett wrote:
>
> You need to use the binary parameter/result format (at the protocol
> level). The current JDBC driver uses the binary format for bytea
> parameters, but the text format for resultsets. psql uses the text
> format for both, I believe.
Thanks for the suggestion i will try again


>> FYI:
>> i tried the same Test with postgres 7.4.7 and earlier and is even
>> worst  i was not able to insert.
>> The  JDBC Driver  Return Out_Of_Memory during the query execution
>
> I assume you mean with an earlier version of the driver? Earlier
> driver versions used the text format for both parameters and results,
> and also used a large amount of temporary heap space for large bytea
> parameters.
both earlier driver and earlier version of postgresql  now i undestand
why my tests were failing.

> You may want to look at using the large-object interface if you are
> dealing with extremely large data; it allows random read/write access
> to the data without transferring it all across the wire in one go.

Yes it appear the be the best solution.. thanks for you help

-patrick


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

Предыдущее
От: Guy Rouillier
Дата:
Сообщение: Re: Calling stored functions in executeBatch
Следующее
От: java unix
Дата:
Сообщение: problem while running simple java program