Re: Add jsonb_compact(...) for whitespace-free jsonb to text

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Add jsonb_compact(...) for whitespace-free jsonb to text
Дата
Msg-id 9def5342-0ae7-8211-4823-ebde596e6211@BlueTreble.com
обсуждение исходный текст
Ответ на Re: Add jsonb_compact(...) for whitespace-free jsonb to text  ("Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>)
Список pgsql-hackers
On 4/29/16 8:56 AM, Shulgin, Oleksandr wrote:
> It would probably make sense model this function after Python's
> "dump-to-JSON-string"
> function: https://docs.python.org/2/library/json.html#json.dumps  With
> the optional parameters for sorting the keys, indentation size and
> punctuation.  This way all the prettiness enhancements could be
> contained in a single function w/o the need for generalized interface
> used in many places.

+1. I've found the output functions of json.dumps to be very handy.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)   mobile: 512-569-9461



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: ALTER TABLE lock downgrades have broken pg_upgrade
Следующее
От: Robert Haas
Дата:
Сообщение: Re: asynchronous and vectorized execution