pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreak@officenet.no>
To: pgsql-jdbc@postgresql.org
Subject: Re: Will Connection.createBlob be implemented any time soon?
Date: Tue, 28 Jan 2014 15:37:14 +0100 (CET)
Message-ID: <OfficeNetEmail.52.276ed5fa811fa8e6.143d9464cf3@prod2> (raw)
In-Reply-To: <CADK3HHLym0j1k+jGCjNtrRD3s87JzCwSwSWkXp4P22cE2cEC6Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

På tirsdag 28. januar 2014 kl. 15:31:20, skrev Dave Cramer <pg@fastcrypt.com 
<mailto:pg@fastcrypt.com>>:   On Tue, Jan 28, 2014 at 4:29 AM, Andreas Joseph 
Krogh<andreak@officenet.no <mailto:andreak@officenet.no>> wrote: På tirsdag 28. 
januar 2014 kl. 10:21:34, skrev Florian Weimer <fweimer@redhat.com 
<mailto:fweimer@redhat.com>>: On 01/28/2014 09:09 AM, Andreas Joseph Krogh 
wrote:

 > I need streaming yes, that's why I use Blobs.

 The PostgreSQL wire protocol does not support streaming BYTEA parameters
 and result data.   Why do you assume I use BYTEA? I use OID for myu blobs.    
  Your initial example does not actually use streaming
 in an essential way, so I'm not sure what you're trying to achieve.   Read it 
again, it does use streaming. It copies the "is" stream out to the "os" stream, 
backed by the Blob. Using EclipseLink with the pgjdbc-ng driver it works 
perfectly using Connection.createBlob, streaming etc. I've tried streaming > 
200GB stuff with a Blob field in a JPA-object and it works.   What pussles me 
is why the "official" driver doesn't implement createBlob as I thought it 
should be a quit common use-case to want to stream large data-chunks in the db 
(for tx-purposes).     Apparently it isn't a common use-case as the driver has 
never had it.    Apparently not common in pg-land.   --
 Andreas Joseph Krogh <andreak@officenet.no>      mob: +47 909 56 963
 Senior Software Developer / CTO - OfficeNet AS - http://www.officenet.no
 Public key: http://home.officenet.no/~andreak/public_key.asc  

view thread (18+ messages)  latest in thread

Message-ID: <OfficeNetEmail.52.276ed5fa811fa8e6.143d9464cf3@prod2>
Permalink:  ../OfficeNetEmail.52.276ed5fa811fa8e6.143d9464cf3@prod2/
Also on:    postgresql.org/message-id/OfficeNetEmail.52.276ed5fa811fa8e6.143d9464cf3@prod2

 · 

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-jdbc@postgresql.org
  Cc: andreak@officenet.no
  Subject: Re: Will Connection.createBlob be implemented any time soon?
  In-Reply-To: <OfficeNetEmail.52.276ed5fa811fa8e6.143d9464cf3@prod2>
  References: <CADK3HHLym0j1k+jGCjNtrRD3s87JzCwSwSWkXp4P22cE2cEC6Q@mail.gmail.com> <OfficeNetEmail.52.276ed5fa811fa8e6.143d9464cf3@prod2>

* 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