5 comments

[ 0.24 ms ] story [ 29.5 ms ] thread
Features review and benchmarks of various ways to store JSON in PostgreSQL
I found it quite annoying that jsonb does not support /u0000 in strings.
I was looking for a way to pretty print json in postgres today, the simplest I came up with is a 'json_mode.sql' script:

  \t on
  \pset pager always
  \pset format unaligned
  \setenv PAGER 'jq .'
then all selects of a json column are readable.