From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | ameenahsanma(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org |
Subject: | Re: Table 9-40. json and jsonb Operators - Data could be more informative |
Date: | 2019-10-17 01:42:16 |
Message-ID: | 20191017014216.GE5605@paquier.xyz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On Tue, Oct 15, 2019 at 03:53:07AM +0000, PG Doc comments form wrote:
> the table 9.40, json and jsonb operators
> lists '->>' and '#>>' operators and the difference written is the second one
> go to the specific location.
>
> I am not an expert in postgres!
> But from my experience,
> '#>>' can also parse the data when it is a stringified JSON, having escape
> charterers in it!
Input is always welcome, thanks!
> for ex :
> for a scalar value in jsonb : "{\"attr\":\"value\"}", from which we cannot
> read keys or values as such,
>
> Query : select (column #>> '{}') from table;
> will give parsed json : {"attr" : "value"} from which keys and values can be
> extracted.
>
> please mention is there if it is right, as i struggled a lot to figure it
> out!
>
> PS: pardon my language, and my concern if it is not right!
Perhaps this could be improved. How would you shape that as a patch?
From the source tree you would need to change the table around the
section "Processing and Creating JSON Data" in src/sgml/func.sgml.
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Jonathan S. Katz | 2019-10-17 10:53:26 | Re: Update documentation - include supported windows version for release 12 |
Previous Message | Michael Paquier | 2019-10-17 01:33:10 | Re: PostgreSQL 12 release notes missing breaking change in libpq |