pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marko Tiikkaja <marko@joh.to>
To: vodevsh@gmail.com
To: pgsql-docs@postgresql.org
Subject: Re: jsonb_each_text(jsonb) returns value::jsonb, not text
Date: Sun, 11 Dec 2016 14:36:29 +0100
Message-ID: <900a67c4-762b-5386-86b4-a9537c40bc72@joh.to> (raw)
In-Reply-To: <20161209130549.1402.15836@wrigleys.postgresql.org>
References: <20161209130549.1402.15836@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

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,
> &quot;jsonb_each_text(jsonb)&quot; returns &quot;setof key text, value text&quot;, but if you
> &quot;pg_typeof(value)&quot; on result it shows &quot;jsonb&quot;.

Not here:

=> select pg_typeof(value) from jsonb_each_text('{"foo":"bar"}');
  pg_typeof
-----------
  text
(1 row)


.m


-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



view thread (2+ messages)

Message-ID: <900a67c4-762b-5386-86b4-a9537c40bc72@joh.to>
Permalink:  ../900a67c4-762b-5386-86b4-a9537c40bc72@joh.to/
Also on:    postgresql.org/message-id/900a67c4-762b-5386-86b4-a9537c40bc72@joh.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: marko@joh.to, vodevsh@gmail.com
  Subject: Re: jsonb_each_text(jsonb) returns value::jsonb, not text
  In-Reply-To: <900a67c4-762b-5386-86b4-a9537c40bc72@joh.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox