Re: jsonb generator functions

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: jsonb generator functions
Дата
Msg-id 544E579E.8010600@dunslane.net
обсуждение исходный текст
Ответ на Re: jsonb generator functions  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: jsonb generator functions
Re: jsonb generator functions
Список pgsql-hackers
On 10/15/2014 03:54 PM, Andrew Dunstan wrote:
>
>>
>> I checked a code, and I have only two small objection - a name
>> "jsonb_object_two_arg" is not good - maybe "json_object_keys_values" ?
>
> It's consistent with the existing json_object_two_arg. In all cases I
> think I kept the names the same except for changing "json" to "jsonb".
> Note that these _two_arg functions are not visible at the SQL level -
> they are only visible in the C code.
>
> I'm happy to be guided by others in changing or keeping these names.
>
>>
>> Next: there are no tests for to_jsonb function.
>>
>>
>
> Oh, my bad. I'll add some.
>
> Thank for the review.
>


Here is a new patch that includes documentation and addresses all these
issues, except that I didn't change the name of jsonb_object_two_arg to
keep it consistent with the name of json_object_two_arg. I'm happy to
change both if people feel it matters.

cheers

andrew

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: proposal: CREATE DATABASE vs. (partial) CHECKPOINT
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Review of GetUserId() Usage