Re: json api WIP patch

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: json api WIP patch
Дата
Msg-id CAHyXU0yYfaq_tThXSyHpmimT6KP_FcLxTbCDszHGMji5XgtPwA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: json api WIP patch  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Mon, Feb 4, 2013 at 2:10 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
>
>> My only remaining nit with the proposal is with json_unnest().
>>
>> SQL unnest() produces list of scalars regardless of dimensionality --
>> json unnest unwraps one level only (contrast: pl/pgsql array 'slice').
>>   So I think 'json_array_each', or perhaps json_slice() is a better fit
>> there.
>>
>
>
> how about json_array_elements()?

that works (although it's a little verbose for my taste).  maybe
json_unwrap, json_array_unwrap, etc.

merlin



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: split rm_name and rm_desc out of rmgr.c
Следующее
От: Daniel Farina
Дата:
Сообщение: Re: json api WIP patch