can't cast hstore to json

Поиск
Список
Период
Сортировка
От Joe Van Dyk
Тема can't cast hstore to json
Дата
Msg-id CACfv+pKJui2OAX2WwtaK0DDWVenfhLGqsZUmKRot7R_JFRea9w@mail.gmail.com
обсуждение исходный текст
Ответы Re: can't cast hstore to json
Re: can't cast hstore to json
Список pgsql-general
I've got a postgresql 9.3.2 server, compiled from scratch. Getting this error:

# select hstore('a', 'b')::json;
ERROR:  cannot cast type hstore to json
LINE 1: select hstore('a', 'b')::json;
                               ^
# select array_to_json(array[hstore('a', 'b')]);
  array_to_json
------------------
 ["\"a\"=>\"b\""]
(1 row)

(I expected  [{"a": "b"}] )

I don't get this on other postgresql installations. Any ideas?

Joe

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

Предыдущее
От: fluxh
Дата:
Сообщение: Re: FATAL: the database system is starting up
Следующее
От: Susan Cassidy
Дата:
Сообщение: puzzling perl DBI vs psql problem