Re: Best way to parse complex json string into table columns?

From: Sbob <sbob(at)quadratum-braccas(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Best way to parse complex json string into table columns?
Date: 2023-12-13 18:05:51
Message-ID: 2427127e-5835-47b0-a47c-82ec20c7142d@quadratum-braccas.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks!

We are using jsonb

I'll have a look at

json[b]_populate_record

On 12/13/23 10:24, Tom Lane wrote:
> Sbob <sbob(at)quadratum-braccas(dot)com> writes:
>> I have a client that is using a function to parse a set of rows from a
>> table with a json column into table columns in a materialized view.
>> ...
>> The above approach is painfully slow, is there a better performing
>> method of converting json strings to table columns?
> json[b]_populate_record is meant for this sort of thing.
>
> Also, if your source data is actually json not jsonb, that's
> a seriously poor choice when you are in need of better
> processing speed.
>
> regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ron Johnson 2023-12-13 18:40:19 Re: Reindex concurrently
Previous Message SOzcn 2023-12-13 17:59:33 Re: Reindex concurrently