Re: jsonb and nested hstore

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: jsonb and nested hstore
Дата
Msg-id 5315A858.3060504@sigaev.ru
обсуждение исходный текст
Ответ на Re: jsonb and nested hstore  (Teodor Sigaev <teodor@sigaev.ru>)
Ответы Re: jsonb and nested hstore  (Peter Geoghegan <pg@heroku.com>)
Список 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@sigaev.ru
  WWW: http://www.sigaev.ru/
 



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: jsonb and nested hstore
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: jsonb and nested hstore