pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maxim Boguk <Maxim.Boguk@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5797: Strange bug with hstore
Date: Mon, 20 Dec 2010 13:48:18 -0500
Message-ID: <12515.1292870898@sss.pgh.pa.us> (raw)
In-Reply-To: <201012201115.oBKBFYH9082710@wwwmaster.postgresql.org>
References: <201012201115.oBKBFYH9082710@wwwmaster.postgresql.org>

"Maxim Boguk" <Maxim.Boguk@gmail.com> writes:
> Bad explain:
> billing=# EXPLAIN SELECT * from domains where
> name='"name"=>"somedomain"'::text::hstore->'name';
>                                              QUERY PLAN
> ----------------------------------------------------------------------------
> ------------------------
>  Seq Scan on domains  (cost=0.00..7775.91 rows=1 width=230)
>    Filter: ((name)::text = (('"name"=>"somedomain"'::text)::hstore ->
> 'name'::text))
> (index not used)

The reason for this is that hstore fails to label its I/O functions as
immutable (or even stable) in 8.4.  This is fixed in 9.0.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <12515.1292870898@sss.pgh.pa.us>
Permalink:  ../12515.1292870898@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12515.1292870898@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Maxim.Boguk@gmail.com
  Subject: Re: BUG #5797: Strange bug with hstore
  In-Reply-To: <12515.1292870898@sss.pgh.pa.us>
  References: <201012201115.oBKBFYH9082710@wwwmaster.postgresql.org> <12515.1292870898@sss.pgh.pa.us>

* 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