Re: BUG #5797: Strange bug with hstore - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5797: Strange bug with hstore
Date
Msg-id 12515.1292870898@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5797: Strange bug with hstore  ("Maxim Boguk" <Maxim.Boguk@gmail.com>)
Responses Re: BUG #5797: Strange bug with hstore  (Maxim Boguk <maxim.boguk@gmail.com>)
List pgsql-bugs
"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

pgsql-bugs by date:

Previous
From: "H.Merijn Brand"
Date:
Subject: Re: [Fwd: DBD::Pg on HP-UX 11.31 64bit]
Next
From: "Erik Rijkers"
Date:
Subject: Re: BUG #5795: 9.0.2 PDF needs editing