Re: jsonb_set array append hack?

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: jsonb_set array append hack?
Дата
Msg-id CAM3SWZTtS25iQU3Djacfwxz=KHoX2tW8sbJmFwc1jTovLzqbLw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: jsonb_set array append hack?  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: jsonb_set array append hack?  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Mon, Sep 21, 2015 at 2:21 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
>> Thanks for the explanation. So, basically, it should be like this, am I
>> right?
>>
>> postgres=# SELECT jsonb_set(
>>     '{"name": "Joe", "vehicle_types": ["car", "van"]}'::jsonb,
>>     '{vehicle_types, nonsense}',
>>     '"motorcycle"', true);
>> ERROR:  path element at the position 2 is not an integer
>
> That seems reasonable. For that matter, we should probably disallow NULL
> path elements also, shouldn't we?

Are you planning on getting this in by Monday, Andrew? It would be
nice to have this fixed going into beta.

-- 
Peter Geoghegan



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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Idea for improving buildfarm robustness
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: jsonb_set array append hack?