Re: jsonb and nested hstore

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Peter Geoghegan <pg(at)heroku(dot)com>, obartunov(at)gmail(dot)com
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: jsonb and nested hstore
Date: 2014-03-04 10:18:00
Message-ID: 5315A858.3060504@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> select '{"a": 25}'::json->>'a' = '{"a": 25.0}'::json->>'a';
> ?column?
> ----------
> f

Although for development version of hstore (not a current version)
# select 'a=> 25'::hstore = 'a=> 25.0'::hstore;
?column?
----------
t

That is because compareJsonbValue compares numeric values with a help of
numeric_cmp() instead of comparing text representation. This inconsistent will
be fixed.

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2014-03-04 10:18:46 Re: jsonb and nested hstore
Previous Message Teodor Sigaev 2014-03-04 10:07:07 Re: jsonb and nested hstore