Similar to csvlog but not really, json logs?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Similar to csvlog but not really, json logs?
Дата
Msg-id CAB7nPqSu9vKCKnxYs3o=+8YC-4LSYBcg4na3HPdM6S3gPwhnhQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Similar to csvlog but not really, json logs?  (Peter Geoghegan <pg@heroku.com>)
Re: Similar to csvlog but not really, json logs?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Similar to csvlog but not really, json logs?  (Jim Nasby <jim@nasby.net>)
Список pgsql-hackers
Hi all,

As mentioned here, we support multiple logging format:
http://www.postgresql.org/docs/devel/static/runtime-config-logging.html
Now what about a json format logging with one json object per log entry?

A single json entry would need more space than a csv one as we need to
track the field names with their values. Also, there is always the
argument that if an application needs json-format logs, it could use
csvlog on Postgres-side and do the transformation itself. But wouldn't
it be a win for application or tools if such an option is available
in-core?

Note that I am not planning to work on that in a close future, but it
would be a good TODO item for beginners if it is worth pursuing.

Thoughts?

Regards,
-- 
Michael



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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: [RFC, POC] Don't require a NBuffer sized PrivateRefCount array of local buffer pins
Следующее
От: Etsuro Fujita
Дата:
Сообщение: Re: Compute attr_needed for child relations (was Re: inherit support for foreign tables)