Re: BUG #5797: Strange bug with hstore

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Maxim Boguk" <Maxim(dot)Boguk(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5797: Strange bug with hstore
Date: 2010-12-20 18:48:18
Message-ID: 12515.1292870898@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Maxim Boguk" <Maxim(dot)Boguk(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Haas 2010-12-20 19:31:52 Re: [BUGS] Documentation bug: Chapter 35.4, paragraph 4
Previous Message Alvaro Herrera 2010-12-20 17:26:45 Re: BUG #5795: 9.0.2 PDF needs editing