pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sven Köhler <skoehler@upb.de>
To: pgsql-jdbc@postgresql.org
Subject: Re: BLOBs etc
Date: Sun, 09 Jan 2005 05:21:00 +0100
Message-ID: <crqbbj$rb2$1@sea.gmane.org> (raw)
In-Reply-To: <thhal-0bVe6Ah3/cS4VwEmRiB+YCAAmoB+3HQ@mailblocks.com>
References: <crkrbc$t8c$1@sea.gmane.org>
	<Pine.BSO.4.56.0501062135090.10098@leary.csoft.net>
	<41DDFC46.1080807@upb.de>
	<Pine.BSO.4.56.0501062211370.25172@leary.csoft.net>
	<41DE0680.4030103@upb.de>
	<Pine.BSO.4.56.0501062258280.6327@leary.csoft.net>
	<41DE0D9B.7050104@upb.de>
	<Pine.BSO.4.56.0501062328590.14356@leary.csoft.net>
	<41DE1C70.604@upb.de>
	<Pine.BSO.4.56.0501070029280.743@leary.csoft.net>
	<41DE425C.9090601@mailblocks.com>
	<thhal-039q5AjP7cS42CBhfGQRJSbsD5gGska@mailblocks.com>
	<Pine.BSO.4.56.0501070358040.5420@leary.csoft.net>
	<41DEBEEA.9050006@mailblocks.com>
	<thhal-0bFe6Ahv/cS4bqiPN7wfvWjbGPCHNux@mailblocks.com>
	<thhal-0bVe6Ah3/cS4VwEmRiB+YCAAmoB+3HQ@mailblocks.com>

>> I'm not clear what your advocating in concrete terms.  A new pseudo 
>> type "binary data" that could be used until it needs to convert it 
>> into a concrete type?  When does this conversion have to happen?
>
> Couldn't this be limited to the client/server protocol? There are 4 
> cases that will fail today. If you attempt to:
> 
> 1. stream lob data from the client for storage in a bytea.
> 2. send a bytea data "by value" for storage in a LOB.
> 3. read LOB data that is passed as a bytea.
> 4. read bytea data that is really a LOB.
> 
> As you pointed out earlier, it should be possible to make the client 
> handle cases #3 and #4 so what's left for the server is to deal with #1 
> and #2. That doesn't sound like rocket science to me.

I see that i'm not alone :-)

I would already be satisfied, if case #2 would be handled by the server, 
and #4 would be handled by the client. That would make the LOB ths most 
compatible datatype. The difference between bytea and LOBs may be a bit 
confusing sometimes, but well, i don't see a problem with semantics. The 
way to access the binary data (with autocommit on or off) is a forced by 
the column's datatype, and not by the Java-method which is called.




view thread (23+ messages)

Message-ID: <crqbbj$rb2$1@sea.gmane.org>
Permalink:  ../crqbbj$rb2$1@sea.gmane.org/
Also on:    postgresql.org/message-id/crqbbj$rb2$1@sea.gmane.org

 · 

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: skoehler@upb.de
  Subject: Re: BLOBs etc
  In-Reply-To: <crqbbj$rb2$1@sea.gmane.org>
  References: <crkrbc$t8c$1@sea.gmane.org> <Pine.BSO.4.56.0501062135090.10098@leary.csoft.net> <41DDFC46.1080807@upb.de> <Pine.BSO.4.56.0501062211370.25172@leary.csoft.net> <41DE0680.4030103@upb.de> <Pine.BSO.4.56.0501062258280.6327@leary.csoft.net> <41DE0D9B.7050104@upb.de> <Pine.BSO.4.56.0501062328590.14356@leary.csoft.net> <41DE1C70.604@upb.de> <Pine.BSO.4.56.0501070029280.743@leary.csoft.net> <41DE425C.9090601@mailblocks.com> <thhal-039q5AjP7cS42CBhfGQRJSbsD5gGska@mailblocks.com> <Pine.BSO.4.56.0501070358040.5420@leary.csoft.net> <41DEBEEA.9050006@mailblocks.com> <thhal-0bFe6Ahv/cS4bqiPN7wfvWjbGPCHNux@mailblocks.com> <thhal-0bVe6Ah3/cS4VwEmRiB+YCAAmoB+3HQ@mailblocks.com> <crqbbj$rb2$1@sea.gmane.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