From: patrick <pch@freeshell.org>
To: pgsql-jdbc@postgresql.org
Subject: Re: Cannot Retrieve Binary Data
Date: Mon, 14 Mar 2005 08:33:55 +0100
Message-ID: <2302fe0996e9f6e79e369b747b35385a@freeshell.org> (raw)
In-Reply-To: <423433C6.7090805@opencloud.com>
References: <5bd6ef364cb5f644245035172a720b30@freeshell.org>
<42320813.9040605@opencloud.com>
<f55fe783a729a522209c7390d92b2fec@freeshell.org>
<423433C6.7090805@opencloud.com>
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
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-jdbc@postgresql.org
Cc: pch@freeshell.org
Subject: Re: Cannot Retrieve Binary Data
In-Reply-To: <2302fe0996e9f6e79e369b747b35385a@freeshell.org>
References: <5bd6ef364cb5f644245035172a720b30@freeshell.org> <42320813.9040605@opencloud.com> <f55fe783a729a522209c7390d92b2fec@freeshell.org> <423433C6.7090805@opencloud.com> <2302fe0996e9f6e79e369b747b35385a@freeshell.org>
* 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