Re: Table 9-40. json and jsonb Operators - Data could be moreinformative

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Table 9-40. json and jsonb Operators - Data could be moreinformative
Дата
Msg-id 20191017014216.GE5605@paquier.xyz
обсуждение исходный текст
Ответ на Table 9-40. json and jsonb Operators - Data could be more informative  (PG Doc comments form <noreply@postgresql.org>)
Список 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

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: PostgreSQL 12 release notes missing breaking change in libpq
Следующее
От: "Jonathan S. Katz"
Дата:
Сообщение: Re: Update documentation - include supported windows version forrelease 12