From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Sehrope Sarkuni <sehrope(at)jackdb(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Add jsonb_compact(...) for whitespace-free jsonb to text |
Date: | 2016-04-27 22:46:29 |
Message-ID: | CAKFQuwbf0DCz6Bb+Gjeh9KOXFJ2GCa_xT8H3mqUCuTWFbvAVwA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sun, Apr 24, 2016 at 3:02 PM, Sehrope Sarkuni <sehrope(at)jackdb(dot)com> wrote:
> It'd be nice to have a stable text representation of a jsonb value with
> minimal whitespace. The latter would also save a few bytes per record in
> text output formats, on the wire, and in backups (ex: COPY ... TO STDOUT).
>
>
Attached is a *very* work in progress patch that adds a
> jsonb_compact(jsonb)::text function. It generates a text representation
> without extra whitespace but does not yet try to enforce a stable order of
> the properties within a jsonb value.
>
>
This doesn't impact backups unless you do away with the function and change
the output i/o function for the type. In that scenario the function is no
longer necessary.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-04-27 22:50:01 | Re: Re: [COMMITTERS] pgsql: Modify the isolation tester so that multiple sessions can wait. |
Previous Message | Mikael Kjellström | 2016-04-27 22:44:03 | Re: Re: [COMMITTERS] pgsql: Modify the isolation tester so that multiple sessions can wait. |