Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDYWb-0004X7-Qg for pgsql-general@arkaria.postgresql.org; Thu, 26 Sep 2019 18:29:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDYWa-00061h-4a for pgsql-general@arkaria.postgresql.org; Thu, 26 Sep 2019 18:29:56 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDYWZ-00061X-PL for pgsql-general@lists.postgresql.org; Thu, 26 Sep 2019 18:29:55 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDYWW-0000bN-UW for pgsql-general@lists.postgresql.org; Thu, 26 Sep 2019 18:29:55 +0000 Received: by mail-pl1-x644.google.com with SMTP id s17so2130plp.6 for ; Thu, 26 Sep 2019 11:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Wd4UdMUiqHx+VWUzdDTjfiyh8wwt5Z00KDYFyJ+4Lhg=; b=j7jbhuCDEosdbatkHw/1fJxoKbXU092KvaV4CdIR5pVYORl8bYEN15ta1vTp4zDwZX ewHTT8NP7jifJBYSgPU9rZc0DbSm0KKmn4mPfWhyp3s16skkbFPGlMhYLJ+anLyTcJLW Te5rhbMH+i2i0jWwCjARwnVD7D5Chj9NqMUH24UMQO4Toa9a9z9ldK2Qz5cAXcy0KTrE R8eT4lEwRuLeasovl5L5Jm76FJ3Bt5zHA7JrP5dDC9IplrDYW7zGshkJXzJVKwbV6RCG ZvMW37Xkc86nRwPpZTZQXlPavyEzsO8RGPq/1sbqsEr7SYUf36FWsvkyDtAfZuYhTdwK Jt+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Wd4UdMUiqHx+VWUzdDTjfiyh8wwt5Z00KDYFyJ+4Lhg=; b=FjDnzUqt7e7eB/MvfyBCUDiZaIegDAqSxUkycjvQdNpBlch/jutzgpAz8rcUoG0VPA bm0shOFsfVBdtUPOXKyBS2rfjHazQ+IMD5j9dpBHQ5DdnkDMkU+UOAlbwDIJwY2od2c3 kKvrQ7vzfCn6uS/enpUcDXNTjc4v8v5m5qkXkRXLj/qP1JGk2WbXwK7YZFYy6igFu0Cb TD80PaulvIRVR0WQ4O3PaeI1U9o7VdrHXhD/wFpXhnIzapUMUN5wpuYkjRjDpltTnM86 q5eo0yrEjhP/yuCHzYEeAbGdF7AyZFJS9CsATSjSbMOKSYzfJF8fRpnUc3sFsaCk/8yA Xg7w== X-Gm-Message-State: APjAAAWiQyd1IVe05yEETWX2IsTWAgXahm4NpSnJ0h43AVTHMnDvR3vI T1+dXvYeVxWBDdrqcHsyyHY2rLaOVLg= X-Google-Smtp-Source: APXvYqwD5wI2PhbXiFvWLaDxiScIBu9D7j7rJ80Tqu0ydHFuHjHF0tB7Rnc95yIk63KRz4n/WgOctw== X-Received: by 2002:a17:902:b201:: with SMTP id t1mr5516375plr.144.1569522589157; Thu, 26 Sep 2019 11:29:49 -0700 (PDT) Received: from [10.104.134.41] ([155.100.47.1]) by smtp.gmail.com with ESMTPSA id c8sm2583488pgw.37.2019.09.26.11.29.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Sep 2019 11:29:48 -0700 (PDT) Subject: Re: row_to_json white space To: pgsql-general@lists.postgresql.org References: From: Rob Sargent Message-ID: Date: Thu, 26 Sep 2019 12:29:46 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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)