Re: jsonb generator functions

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: jsonb generator functions
Дата
Msg-id CAFj8pRBkCCwuTW-2LCMjsW5pkxSOGDj=7bXet7Fht_RvpveFvg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: jsonb generator functions  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Hi

2014-10-27 15:33 GMT+01:00 Andrew Dunstan <andrew@dunslane.net>:

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.

I checked last patch "jsonbmissingfunc5.patch" and I have no any objections:

1. This jsonb API is consistent with current JSON API, so we surely would to this functionality

2. A implementation is clean without side effects and without impact on current code.

3. Patching and compilation are without any issues and warnings

4. Source code respects PostgreSQL coding rules

5. All regress tests was passed without problems

6. Documentation was build without problems

7. Patch contains necessary regress tests

8. Patch contains necessary documentation for new functions.

Patch is ready for commiters

Thank you for patch

Regards

Pavel
 

cheers

andrew

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: INSERT ... ON CONFLICT {UPDATE | IGNORE}
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: INSERT ... ON CONFLICT {UPDATE | IGNORE}