Re: Abnormal JSON query performance

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Abnormal JSON query performance
Дата
Msg-id CAKFQuwa8m-gPNsDJHTc5nfeu5uEWvsrHx3neEOpoxARu+6CkxA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Abnormal JSON query performance  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Abnormal JSON query performance  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
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?

SELECT *
FROM (VALUES ('{"id":1,"name":"Dave","country":"US"}'::json)) vals (v)
, json_to_record(v) j(name text, country text)

David J.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Abnormal JSON query performance
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15196: bogus data in lock file "postmaster.pid"