On Fri, Aug 20, 2021 at 11:35:29AM +0200, Ronan Dunklau wrote: > Michael, your jsonlog module already fullfills this need. Is it something > that > should be merged into our tree ?
Yes, there is nothing technically preventing to have this stuff in core, of course, and that would even take care of the issues in detecting if the piping protocol should be used or not. Now, the last time this was proposed, there was a lot of drawback because the presence of the JSON keys increases significantly the size of the logs compared to CSV, and usually users care a lot about the size of the log files. I would support the presence of JSON format for the logs in core, FWIW. The module is here, for reference: https://github.com/michaelpq/pg_plugins/tree/master/jsonlog -- Michael
signature.asc
Description: PGP signature