proposal: jsonb_populate_array

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема proposal: jsonb_populate_array
Дата
Msg-id CAFj8pRAPGu_ka4S-pxKKOJCta29KAaBMxGNGJkmiD5T=s+EBgA@mail.gmail.com
обсуждение исходный текст
Ответы Re: proposal: jsonb_populate_array  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
Hi

Now, there is no native functionality for conversion from json(b) value to some array.


It should not be too hard to implement native function jsonb_populate_array

jsonb_populate_array(anyarray, jsonb) returns anyarray

Usage:

select jsonb_populate_array(null::text[], '["cust_full_name","cust_email"]')

Comments, notes?

Regards

Pavel


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

Предыдущее
От: Masahiro Ikeda
Дата:
Сообщение: Re: Support to define custom wait events for extensions
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Naive handling of inequalities by nbtree initial positioning code