Re: jsonb concatenate operator's semantics seem questionable

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: jsonb concatenate operator's semantics seem questionable
Дата
Msg-id 555F77B7.3070604@BlueTreble.com
обсуждение исходный текст
Ответ на Re: jsonb concatenate operator's semantics seem questionable  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: jsonb concatenate operator's semantics seem questionable  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On 5/21/15 4:25 PM, Andrew Dunstan wrote:
> Here is a patch that renames jsonb_replace to jsonb_set with a boolean
> create_missing flag that defaults to false (should we default it to
> true?). With the flag set it's more or less upsert for jsonb. Without,
> it's just update.

I think upsert is probably the more expected behavior.

Though, I'm also wondering if we should allow for throwing an error if 
path doesn't already exist (it looks like if create_missing is false it 
silently does nothing right now?)
-- 
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com



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

Предыдущее
От: Fabrízio de Royes Mello
Дата:
Сообщение: Re: Change pg_cancel_*() to ignore current backend
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Change pg_cancel_*() to ignore current backend