Re: proposal: jsonb_populate_array

Поиск
Список
Период
Сортировка
Искать
От
Erik Rijkers
Тема
Re: proposal: jsonb_populate_array
Дата
Msg-id
96c35ac8-ae82-b444-9b10-2dd1df96a950@xs4all.nl
Ответ на
Список
Дерево обсуждения
proposal: jsonb_populate_array Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: jsonb_populate_array Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: proposal: jsonb_populate_array Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: jsonb_populate_array Erik Rijkers <er@xs4all.nl>
Re: proposal: jsonb_populate_array Chapman Flack <chap@anastigmatix.net>
Re: proposal: jsonb_populate_array Vik Fearing <vik@postgresfriends.org>
Re: proposal: jsonb_populate_array Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: jsonb_populate_array jian he <jian.universality@gmail.com>
Re: proposal: jsonb_populate_array Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: jsonb_populate_array Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: jsonb_populate_array Vik Fearing <vik@postgresfriends.org>
Re: proposal: jsonb_populate_array Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: jsonb_populate_array Vik Fearing <vik@postgresfriends.org>
Re: proposal: jsonb_populate_array Pavel Stehule <pavel.stehule@gmail.com>
Op 8/14/23 om 14:51 schreef Pavel Stehule:> po 14. 8. 2023 v 11:32 
odesílatel Alvaro Herrera 
 > with proposed function I can write
 >
 > select jsonb_populate_array(null:date[],
 > '["2023-07-13","2023-07-14"]'::jsonb)
 >
Not yet committed, but outstanding
SQL/JSON patches (v11) will let you do:

select json_query(
     '["2023-07-13", "2023-07-14"]'::jsonb
   , '$' returning date[]
);
        json_query
-------------------------
  {2023-07-13,2023-07-14}
(1 row)

That's (more or less) what you want, no?

Let's hope it gets submitted 17-ish, anyway

Erik







В списке pgsql-hackers по дате отправления
От: Tomas Vondra
Дата:
От: Pavel Stehule
Дата:
FAQ