Re: Abnormal JSON query performance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Abnormal JSON query performance
Дата
Msg-id 21332.1526313214@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Abnormal JSON query performance  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Abnormal JSON query performance  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-bugs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Mon, May 14, 2018 at 7:49 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> SELECT ... FROM ...some tables...,
>> jsonb_to_record(jsonbcol) AS j(id int, name text, price numeric)
>> WHERE ...
>>
>> which is something you can do today.

> ​Indeed you can - could you please point to the docs for that one?

https://www.postgresql.org/docs/current/static/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE

Perhaps it'd be worth emphasizing the usefulness of jsonb_to_record[set]
a bit more, say with examples in section 8.14.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: "REVOKE ... ON DATABASE template1 ..." has no effect
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #15196: bogus data in lock file "postmaster.pid"