From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: row_to_json white space
Date: Thu, 26 Sep 2019 12:29:46 -0600
Message-ID: <d776da60-06ed-3cbd-c596-acc70ccaed5e@gmail.com> (raw)
In-Reply-To: <CAKM-gm+MJbLzgiZk-16ciCW+aLK35bpjyhuxT2wnSJWt9O5igw@mail.gmail.com>
References: <CAKM-gm+MJbLzgiZk-16ciCW+aLK35bpjyhuxT2wnSJWt9O5igw@mail.gmail.com>
On 9/26/19 11:54 AM, Mark Lybarger wrote:
> select ROW_to_json(q) from (select 'foo a bar' as TEST) q;
Not here
postgres=# select ROW_to_json(q) from (select 'foo a bar' as TEST) q;
row_to_json
-------------------------------
{"test":"foo a bar"}
(1 row)
postgres=# select version();
version
---------------------------------------------------------------------------------------------------------
PostgreSQL 10.7 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5
20150623 (Red Hat 4.8.5-36), 64-bit
(1 row)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: robjsargent@gmail.com
Subject: Re: row_to_json white space
In-Reply-To: <d776da60-06ed-3cbd-c596-acc70ccaed5e@gmail.com>
References: <CAKM-gm+MJbLzgiZk-16ciCW+aLK35bpjyhuxT2wnSJWt9O5igw@mail.gmail.com> <d776da60-06ed-3cbd-c596-acc70ccaed5e@gmail.com>
* 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