Re: psql JSON output format

Поиск
Список
Период
Сортировка
От Christoph Berg
Тема Re: psql JSON output format
Дата
Msg-id ZYBf7fD8vTb7DHZ2@msg.df7cb.de
обсуждение исходный текст
Ответ на psql JSON output format  (Christoph Berg <myon@debian.org>)
Список pgsql-hackers
Re: To PostgreSQL Hackers
> On the command line, the format is selected by `psql --json` and `psql -J`.

Among other uses, it enables easy post-processing of psql output using `jq`:

$ psql -lJ | jq
[
  {
    "Name": "myon",
    "Owner": "myon",
    "Encoding": "UTF8",
    "Locale Provider": "libc",
    "Collate": "de_DE.utf8",
    "Ctype": "de_DE.utf8",
    "ICU Locale": null,
    "ICU Rules": null,
    "Access privileges": null
  },
...
]

Christoph



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

Предыдущее
От: Christoph Berg
Дата:
Сообщение: psql JSON output format
Следующее
От: Matt Skelley
Дата:
Сообщение: Re: A wrong comment about search_indexed_tlist_for_var