Re: Selecting a JSON object of arrays from a PostgreSQL table

Поиск
Список
Период
Сортировка
От Alexander Farber
Тема Re: Selecting a JSON object of arrays from a PostgreSQL table
Дата
Msg-id CAADeyWh6hbrNdqnR5caxjZC3vdW4cogxn=nANjFv3_zRX6qhFA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Selecting a JSON object of arrays from a PostgreSQL table  ("Ivan E. Panchenko" <i.panchenko@postgrespro.ru>)
Ответы Re: Selecting a JSON object of arrays from a PostgreSQL table  (Alexander Farber <alexander.farber@gmail.com>)
Список pgsql-general
Hi Ivan,

On Mon, Jan 1, 2018 at 3:34 PM, Ivan E. Panchenko <i.panchenko@postgrespro.ru> wrote:

select json_object_agg(gid, y) from
    (
         select gid, jsonb_agg(row_to_json(chat)) y
         from chat
         group by gid
    ) x;


01.01.2018 16:41, Alexander Farber пишет:

I have prepared a simple SQL Fiddle demonstrating my problem: http://sqlfiddle.com/#!17/2c9c5/1 


that is great, thank you!

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

Предыдущее
От: "Ivan E. Panchenko"
Дата:
Сообщение: Re: Selecting a JSON object of arrays from a PostgreSQL table
Следующее
От: Martin Moore
Дата:
Сообщение: Slow system due to ReorderBufferGetTupleBuf?