Re: Add jsonlog log_destination for JSON server logs

From: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, david(at)fetter(dot)org
Subject: Re: Add jsonlog log_destination for JSON server logs
Date: 2021-09-01 20:39:43
Message-ID: CAH7T-aqW0_yxuqznFkQbjdZz1ck+96Q2HzZHki6dsQbVHxzEPw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Updated patch set is attached.

This version splits out the existing csvlog code into its own file and
centralizes the common helpers into a new elog-internal.h so that they're
only included by the actual write_xyz sources.

That makes the elog.c changes in the JSON logging patch minimal as all it's
really doing is invoking the new write_jsonlog(...) function.

It also adds those missing fields to the JSON logger output.

Regards,
-- Sehrope Sarkuni
Founder & CEO | JackDB, Inc. | https://www.jackdb.com/

Attachment Content-Type Size
v2-0001-Adds-separate-dest-field-to-log-protocol-PipeProtoHe.patch text/x-patch 4.3 KB
v2-0002-Add-TAP-test-for-csvlog.patch text/x-patch 3.5 KB
v2-0003-Split-csv-handling-in-elog-c-into-separate-csvlog-c.patch text/x-patch 21.4 KB
v2-0004-Add-jsonlog-log_destination-for-JSON-server-logs.patch text/x-patch 33.1 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-09-01 20:42:49 Re: BUG #16583: merge join on tables with different DB collation behind postgres_fdw fails
Previous Message Andrew Dunstan 2021-09-01 20:00:58 Re: Postgres Win32 build broken?