From: David Durham <ddurham@vailsys.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: streaming access to bytea data
Date: Fri, 17 Mar 2006 18:27:10 -0600
Message-ID: <441B53DE.50909@vailsys.com> (raw)
In-Reply-To: <Pine.BSO.4.63.0603171918240.22748@leary.csoft.net>
References: <441B4B8E.2030404@vailsys.com>
<Pine.BSO.4.63.0603171918240.22748@leary.csoft.net>
Kris Jurka wrote:
> On Fri, 17 Mar 2006, David Durham wrote:
>
>> 1 - Does Postgres server load the entire bytea column before sending
>> to clients?
>
> Yes.
ok
> The JDBC driver doesn't support streaming reads, nor does any other
> client interface. You would need to extend the frontend/backend
> protocol to return some sort of pointer to the bytea reference rather
> than the whole thing. This will still require the server to store the
> whole bytea result somewhere to allow it to be pointed to.
>
> Perhaps you should think about using large objects instead of bytea?
Thanks for the quick response, and the exact information that I needed.
Unfortunately large objects don't work with Slony replication.
Thanks again,
Dave
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: ddurham@vailsys.com, books@ejurka.com
Subject: Re: streaming access to bytea data
In-Reply-To: <441B53DE.50909@vailsys.com>
References: <441B4B8E.2030404@vailsys.com> <Pine.BSO.4.63.0603171918240.22748@leary.csoft.net> <441B53DE.50909@vailsys.com>
* 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