Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/4735~1
Choose a base ref
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/4735
Choose a head ref
  • 2 commits
  • 6 files changed
  • 2 contributors

Commits on Apr 29, 2025

  1. Allow logging backtraces in more cases

    We previously only had the backtrace_functions GUC to control when
    backtraces were logged. Based on mailinglist discussion there were two
    common cases that people wanted backtraces that were not covered by this
    GUC though:
    
    1. Logging backtraces for all internal errors
    2. Logging backtraces for all errors
    
    To support those two usecases, as well as to allow users to continue to
    log backtraces for specific warnings using `backtrace_functions`, this
    modifies the GUCs in the following way:
    
    1. Adds a `log_backtrace` GUC, which can be set to `none` (default),
       `internal_error` and `all` to log different types of backtraces.
    2. Change `backtrace_functions` to behave as an additional filter on top
       of `log_backtrace`. The empty string (the default) is now interpreted
       as doing no filtering based on function name.
    3. Add a `backtrace_min_level` GUC, which limits for which log entries
       backtraces are written, based on their log level. This defaults to
       ERROR.
    
    This does mean that setting `backtrace_functions=some_func` alone is not
    enough to get backtraces for some_func. You now need to combine that
    with `log_backtrace_mode=all` and if you want to get backtraces for
    non-errors (which you previously got), you also need to change
    backtrace_min_level to whichever level you want backtraces for.
    JelteF authored and Commitfest Bot committed Apr 29, 2025
    Configuration menu
    Copy the full SHA
    77e0788 View commit details
    Browse the repository at this point in the history
  2. [CF 4735] v12 - Support a wildcard in backtrace_functions

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/4735
    
    The branch will be overwritten each time a new patch version is posted to
    the thread, and also periodically to check for bitrot caused by changes
    on the master branch.
    
    Patch(es): https://www.postgresql.org/message-id/CAGECzQThxK+ZNLNasmiMXXN_TfUJEVDC49pZ2LB_aSvjW2tigA@mail.gmail.com
    Author(s): Jelte Fennema-Nio
    Commitfest Bot committed Apr 29, 2025
    Configuration menu
    Copy the full SHA
    280cafb View commit details
    Browse the repository at this point in the history
Loading