Will there be a JSON operator like ->> but returning numeric?

Поиск
Список
Период
Сортировка
От Seamus Abshere
Тема Will there be a JSON operator like ->> but returning numeric?
Дата
Msg-id 5421981F.8030204@abshere.net
обсуждение исходный текст
Ответы Re: Will there be a JSON operator like ->> but returning numeric?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
hi,

I've got use cases like

> array_remove(array_agg((a->>'b')::float), NULL)

It would be nice to replace (a->>'b')::float with something like

> a->^'b'

that directly returned a numeric... is that in the cards?

Thanks,
Seamus


--
Seamus Abshere, SCEA
https://github.com/seamusabshere


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

Предыдущее
От: Seamus Abshere
Дата:
Сообщение: Unexpected syntax error when using JSON -> in 9.3.5
Следующее
От: Daniel Lenski
Дата:
Сообщение: Re: Where art thou, plpython2.dll? (EDB installer)