X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D86F6D71E0 for ; Tue, 8 Nov 2005 12:03:12 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 37134-02 for ; Tue, 8 Nov 2005 16:03:11 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id AD08BD714C for ; Tue, 8 Nov 2005 12:03:10 -0400 (AST) Received: (qmail 14476 invoked from network); 8 Nov 2005 16:03:09 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 8 Nov 2005 16:03:09 -0000 Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Tom Lane Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: use of OID.Unknown Date: Tue, 8 Nov 2005 11:03:08 -0500 To: List X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.022 required=5 tests=[AWL=0.022] X-Spam-Score: 0.022 X-Spam-Level: X-Archive-Number: 200511/50 X-Sequence-Number: 14148 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