pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: List <pgsql-jdbc@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: use of OID.Unknown
Date: Tue, 8 Nov 2005 11:03:08 -0500
Message-ID: <A9FB7703-8451-4B03-AC70-178F793DF78E@fastcrypt.com> (raw)

Before we cut an 8.1 stable release, I'd like to revisit the use of  
unknown for strings at a minimum.

Currently the driver exhibits some non-intuitive behaviour.

1) Not using indexes unless the correct type is bound to the  
parameter ( this is intuitive as I write it but many users get  
tripped up ). I'm not sure using unknown for strings would help here
but the other option is using unknown for everything and let the  
backend decide what type to use. This may be an option if we only do  
this when prepareThreshold is 0 since we assume that we won't be  
caching plans anyway.

2) We have broken backward compatibility by changing the behaviour of  
setString.

At a minimum I'd propose we bind strings to unknown.

For or against ?

Dave



view thread (14+ messages)  latest in thread

Message-ID: <A9FB7703-8451-4B03-AC70-178F793DF78E@fastcrypt.com>
Permalink:  ../A9FB7703-8451-4B03-AC70-178F793DF78E@fastcrypt.com/
Also on:    postgresql.org/message-id/A9FB7703-8451-4B03-AC70-178F793DF78E@fastcrypt.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: pg@fastcrypt.com, tgl@sss.pgh.pa.us
  Subject: Re: use of OID.Unknown
  In-Reply-To: <A9FB7703-8451-4B03-AC70-178F793DF78E@fastcrypt.com>
  References: <A9FB7703-8451-4B03-AC70-178F793DF78E@fastcrypt.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