[DOCS] jsonb_each_text(jsonb) returns value::jsonb, not text
[DOCS] jsonb_each_text(jsonb) returns value::jsonb, not text
От:
vodevsh@gmail.com
Дата:
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/9.6/static/functions-json.html Description: Hi, According to https://www.postgresql.org/docs/current/static/functions-json.html, "jsonb_each_text(jsonb)" returns "setof key text, value text", but if you "pg_typeof(value)" on result it shows "jsonb". Thank you
Re: [DOCS] jsonb_each_text(jsonb) returns value::jsonb, not text
От:
Marko Tiikkaja <marko@joh.to>
Дата:
On 2016-12-09 2:05 PM, vodevsh@gmail.com wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.6/static/functions-json.html
> Description:
>
> Hi,
> According to
> https://www.postgresql.org/docs/current/static/functions-json.html,
> "jsonb_each_text(jsonb)" returns "setof key text, value text", but if you
> "pg_typeof(value)" on result it shows "jsonb".
Not here:
=> select pg_typeof(value) from jsonb_each_text('{"foo":"bar"}');
pg_typeof
-----------
text
(1 row)
.m