Re: passing multiple records to json_populate_recordset

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: passing multiple records to json_populate_recordset
Дата
Msg-id 52404AE8.7020709@gmail.com
обсуждение исходный текст
Ответ на Re: passing multiple records to json_populate_recordset  (Raphael Bauduin <rblists@gmail.com>)
Список pgsql-general
On 09/23/2013 06:25 AM, Raphael Bauduin wrote:
>
>
> Some more info, after searching further.
>
> This query
>
>    select
> json_populate_record(null::product,row_to_json(json_populate_recordset(null::product,event->'products')))
> from (select * from events limit 2) as foo ;
>
> returns what I want but not in the format I want (why?):

Maybe try:

select  * from
json_populate_record(null::product,row_to_json(json_populate_recordset(null::product,event->'products')))
from (select * from events limit 2) as foo ;

>
> Raph


--
Adrian Klaver
adrian.klaver@gmail.com


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

Предыдущее
От: Jayadevan M
Дата:
Сообщение: Re: Query runs forever after upgrading to 9.3
Следующее
От: Chris Travers
Дата:
Сообщение: Re: Tree structure