Re: Redacting information from logs - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Redacting information from logs
Date
Msg-id 07402c43d92e1d90860fcd26d3a43e283f22f791.camel@j-davis.com
Whole thread Raw
In response to Re: Redacting information from logs  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Mon, 2019-08-05 at 14:44 -0700, Andres Freund wrote:
> at the cost of sometimes more complicated % syntax (i.e. %1$d to
> refer
> to the first argument).
> 
> I think the probable loss of gcc format warnings would be the biggest
> issue with this whole proposal, and potential translator trouble the
> biggest impediment for named parameters.

I'd be OK with '%1$d' syntax.

That leaves type safety as the main problem. Your solution involving
_Generic is interesting -- I didn't even know that existed. I don't
think it needs to be supported on all compilers, as long as we are
getting errors from somewhere. They would be runtime errors instead of
compile-time errors, though.

Regards,
    Jeff Davis





pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Assertion for logically decoding multi inserts into the catalog
Next
From: Tom Lane
Date:
Subject: Putting kerberos/ldap logs somewhere useful