Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWO1j-0007iM-U0 for pgsql-bugs@arkaria.postgresql.org; Sat, 15 Jul 2017 14:26:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dWO1i-0004oG-TH for pgsql-bugs@arkaria.postgresql.org; Sat, 15 Jul 2017 14:26:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dWNBe-0000Mv-K0 for pgsql-bugs@postgresql.org; Sat, 15 Jul 2017 13:32:46 +0000 Received: from sonic309-26.consmr.mail.ir2.yahoo.com ([77.238.179.84]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dWNBb-0006mK-CC for pgsql-bugs@postgresql.org; Sat, 15 Jul 2017 13:32:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1500125561; bh=64jz6OpgWvPFPpeORIEK8dXKUcq9N3PAXu0UOtsfbDM=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=PtnD9x7/biMJKpfQzSx7ht+qiYqMUWIrpVeo3lsvy3lH3+TEs1U0VUzS1ycS2PCx5EAi5BFssQK+ozsuwI6LK9krLSEo1Mjtj16Jz88EgzgbdRk3/Fzzs9yEpkITfoDHDr+RgfWWhT6gRCAz9IgBauKOiHC1jKikk91LpYNvs12PUXBCJqD0aTpUCTDvRR8TvqQKQkyzpKRnV+bCE4LT8qw48fYwXHVZSIiPQ+EPgJ8NqGO73Ce3ODiy4kxDT/9V4WAY6pOcQgK6P7TCeTjxt5UxF1ABlpNEoupA+oEu0pV3vkZ3oGhEXX5TEaQG10u+o95hjLx4+Axu1WWbFaWJig== X-YMail-OSG: q_rRHN4VM1lOY5zkuVbWlq8lGjC8d.2iSGNgZSN8FD2NDIB15xDrSChNATHX2sL kRuEqfAv29iiEdiJJmTg9VGcagwUmy9yNHcryyP4j4g2sj2upRvtcaflbPe32NMRJdM2QPddBgiG 7q4WJ3ynagocNXfUCqdR2F5l4l9WyTRkSArHR6d72rI_j9U7f.zBXlq0G0qa_UyX8xji3mjkT1Z5 NL3Gka5XMKkiPrdBeZk4D2rh7wdt33o8WovaXb8diPrCy5bbT29MDH1xmDl9RBG_l1cCaLB_jj5N gfngVlESONX54ivkv3CYGu8DshIoyyXLc5eTMps7h6qRacpCQKHl2agTrDKqltjjgo4RrtPSjgO_ HOQZJl_UrDkxTl3h9BzN7l3aAG5DaZjSvjhzvNDK0fLrx.ss.Gz2iczNqF4xuHgNWHhREs1y7ZM7 .8smgS.ZCvyKvtLApS9gyTxFLuSdxCXZbwefoaMfYXFmvl4Cr3wjzPGOTkjj4aZzbJq3mWCZTa8W 646KH9gAxptWO6lzpQEUyBeshMqmDBnL8Ew-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Sat, 15 Jul 2017 13:32:41 +0000 Date: Sat, 15 Jul 2017 13:32:40 +0000 (UTC) From: Martin Jonsson Reply-To: Martin Jonsson To: Message-ID: <1519203186.1262505.1500125561024@mail.yahoo.com> Subject: function jsonb_pretty only outputs first character of result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <1519203186.1262505.1500125561024.ref@mail.yahoo.com> X-Mailer: WebService/1.1.10092 YahooMailBasic Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Content-Length: 275 List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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