pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedfunction jsonb_pretty only outputs first character of result
2+ messages / 2 participants
[nested] [flat]
* function jsonb_pretty only outputs first character of result
@ 2017-07-15 13:32 Martin Jonsson <martinerikjonsson@yahoo.fr>
2017-07-15 14:39 ` Re: function jsonb_pretty only outputs first character of result Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Martin Jonsson @ 2017-07-15 13:32 UTC (permalink / raw)
To: pgsql-bugs
Hello.
On postgres 9.6.3 (current ubuntu release) using the jsonb_pretty function as in the documentation:
"select jsonb_pretty('[{"f1":1,"f2":null},2,null,3]')" does only give output "[". it seems the function only outputs the first character.
Many thanks
Martin Jonsson
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: function jsonb_pretty only outputs first character of result
2017-07-15 13:32 function jsonb_pretty only outputs first character of result Martin Jonsson <martinerikjonsson@yahoo.fr>
@ 2017-07-15 14:39 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2017-07-15 14:39 UTC (permalink / raw)
To: Martin Jonsson <martinerikjonsson@yahoo.fr>; +Cc: pgsql-bugs
Martin Jonsson <martinerikjonsson@yahoo.fr> writes:
> On postgres 9.6.3 (current ubuntu release) using the jsonb_pretty function as in the documentation:
> "select jsonb_pretty('[{"f1":1,"f2":null},2,null,3]')" does only give output "[". it seems the function only outputs the first character.
Hm, I get:
regression=# select jsonb_pretty('[{"f1":1,"f2":null},2,null,3]');
jsonb_pretty
--------------------
[ +
{ +
"f1": 1, +
"f2": null+
}, +
2, +
null, +
3 +
]
(1 row)
Perhaps you were testing it with something that only showed you the first
line of the result text?
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-07-15 14:39 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-07-15 13:32 function jsonb_pretty only outputs first character of result Martin Jonsson <martinerikjonsson@yahoo.fr>
2017-07-15 14:39 ` Tom Lane <tgl@sss.pgh.pa.us>
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