On Wed, 13 Mar 2024 at 16:32, Jelte Fennema-Nio <m...@jeltef.nl> wrote:
> How
> about the following aproach. It still uses 3 GUCs, but they now all
> work together. There's one entry point and two additional filters
> (level and function name)
>
> # Says what log entries to log backtraces for
> log_backtrace = {all|internal|none} (default: internal)
>
> # Excludes log entries from log_include_backtrace by level
> backtrace_min_level = {debug4|...|fatal} (default: error)
>
> # Excludes log entries from log_include_backtrace if function name
> # does not match list, but empty string disables this filter (thus
> # logging for all functions)
> backtrace_functions = {...} (default: '')

Attached is a patch that implements this. Since the more I think about
it, the more I like this approach.

Attachment: v8-0001-Add-PGErrorVerbosity-to-typedefs.list.patch
Description: Binary data

Attachment: v8-0002-Restructure-backtrace-related-GUCs.patch
Description: Binary data

Reply via email to