Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TeTP1-0002Es-So for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Nov 2012 16:25:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TeTP1-00019r-Bv for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Nov 2012 16:25:23 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TeIjy-0003lq-Sm for pgsql-bugs@postgresql.org; Fri, 30 Nov 2012 05:02:19 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TeIjw-0005By-5e for pgsql-bugs@postgresql.org; Fri, 30 Nov 2012 05:02:18 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TeIjv-0002Q1-PE for pgsql-bugs@postgresql.org; Fri, 30 Nov 2012 05:02:15 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TeIju-0003qb-WD for pgsql-bugs@postgresql.org; Fri, 30 Nov 2012 05:02:15 +0000 Date: Fri, 30 Nov 2012 05:02:14 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7715: hstore "exists" should use same index as "?" operator To: pgsql-bugs@postgresql.org From: ian.dees@gmail.com X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7715 Logged by: Ian Dees Email address: ian.dees@gmail.com PostgreSQL version: 9.1.6 Operating system: Ubuntu 11.04 Description:=20=20=20=20=20=20=20=20 Currently the hstore documentation [0] says "hstore has GiST and GIN index support for the @>, ?, ?& and ?| operators", but the "?" character is a special character in JDBC and JDBC always tries to replace it with a parameter [1]. Because of the intermingling of these two issues, it's impossible to use the index when querying an hstore row using JDBC with the "?" operator. [0] http://www.postgresql.org/docs/9.1/static/hstore.html [1] http://stackoverflow.com/questions/11940401/escaping-hstore-contains-operat= ors-in-a-jdbc-prepared-statement --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs