pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ken Geis <kgeis@speakeasy.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: patch: ResultSetTest.java
Date: Wed, 26 Oct 2005 09:58:44 +1300
Message-ID: <435E9C84.40300@opencloud.com> (raw)
In-Reply-To: <28994.1130273364@sss.pgh.pa.us>
References: <W277193702285981130228293@webmail4>
	<13234.1130247178@sss.pgh.pa.us>
	<5de916660e000c9b77ae3ec5e213b0a9@speakeasy.net>
	<14102.1130252457@sss.pgh.pa.us>
	<435E9821.5060704@opencloud.com>
	<28994.1130273364@sss.pgh.pa.us>

Tom Lane wrote:
> Oliver Jowett <oliver@opencloud.com> writes:
> 
>>Or perhaps something like using the input/output functions if 
>>send/receive are not present?
> 
> Doesn't seem like an amazingly good idea ... how would you know what you
> were getting?

Err, the same question applies to any binary data type, surely. You have 
to know what format the data is in to make use of it. The issue is that 
getting an ERROR in this case makes the binary output formats somewhat 
useless..

I was thinking of it as "if you do not specify send/receive functions, 
then the 'binary' format is the same as the text format". Is that 
unreasonable to do?

> A more salient point is exactly what is JDBC going to *do* with data in
> an unknown binary format?

Well, my plan back when I looked at this last was to just store the 
binary-format data on the client side, and if the application actually 
asked for it in text format (directly or implicitly), send it back to 
the backend as a binary-format parameter to a SELECT that returns a 
text-format column (i.e. ask the backend to do the work of turning it 
into text, since the driver doesn't know how to).

That would work fine except for this ERROR case.

-O



view thread (11+ messages)

Message-ID: <435E9C84.40300@opencloud.com>
Permalink:  ../435E9C84.40300@opencloud.com/
Also on:    postgresql.org/message-id/435E9C84.40300@opencloud.com

 · 

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: oliver@opencloud.com, tgl@sss.pgh.pa.us, kgeis@speakeasy.net
  Subject: Re: patch: ResultSetTest.java
  In-Reply-To: <435E9C84.40300@opencloud.com>
  References: <W277193702285981130228293@webmail4> <13234.1130247178@sss.pgh.pa.us> <5de916660e000c9b77ae3ec5e213b0a9@speakeasy.net> <14102.1130252457@sss.pgh.pa.us> <435E9821.5060704@opencloud.com> <28994.1130273364@sss.pgh.pa.us> <435E9C84.40300@opencloud.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