Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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/5442~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/5442
Choose a head ref
  • 3 commits
  • 16 files changed
  • 2 contributors

Commits on Mar 11, 2025

  1. Modularize log_connections output

    Convert the boolean log_connections GUC into a list GUC comprised of the
    connection aspects to log.
    
    This gives users more control over the volume and kind of connection
    logging.
    
    The current log_connections options are 'receipt', 'authentication', and
    'authorization'. The empty string disables all connection logging. 'all'
    enables all available connection logging.
    
    For backwards compatibility, the most common values for the
    log_connections boolean are still supported (on, off, 1, 0, true,
    false, yes, no).
    
    Author: Melanie Plageman <melanieplageman@gmail.com>
    Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
    Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>
    Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
    Discussion: https://postgr.es/m/flat/CAAKRu_b_smAHK0ZjrnL5GRxnAVWujEXQWpLXYzGbmpcZd3nLYw%40mail.gmail.com
    melanieplageman authored and Commitfest Bot committed Mar 11, 2025
    Configuration menu
    Copy the full SHA
    2f6f7d1 View commit details
    Browse the repository at this point in the history
  2. Add connection establishment duration logging

    Add log_connections option 'setup_durations' which logs durations of
    several key parts of connection establishment and backend setup.
    
    For an incoming connection, starting from when the postmaster gets a
    socket from accept() and ending when the forked child backend is first
    ready for query, there are multiple steps that could each take longer
    than expected due to external factors. This logging provides visibility
    into authentication and fork duration as well as the end-to-end
    connection establishment and backend initialization time.
    
    To make this portable, the timings captured in the postmaster (socket
    creation time, fork initiation time) are passed through the
    BackendStartupData.
    
    Author: Melanie Plageman <melanieplageman@gmail.com>
    Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
    Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>
    Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
    Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com>
    Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>
    Reviewed-by: Guillaume Lelarge <guillaume.lelarge@dalibo.com>
    Discussion: https://postgr.es/m/flat/CAAKRu_b_smAHK0ZjrnL5GRxnAVWujEXQWpLXYzGbmpcZd3nLYw%40mail.gmail.com
    melanieplageman authored and Commitfest Bot committed Mar 11, 2025
    Configuration menu
    Copy the full SHA
    acac639 View commit details
    Browse the repository at this point in the history
  3. [CF 5442] v14 - Log connection establishment timings

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5442
    
    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/CAAKRu_Zgk-_xLxpddscwYSzGXS_jbLS_fzK1TvjUBYFDEXuPMg@mail.gmail.com
    Author(s): Melanie Plageman
    Commitfest Bot committed Mar 11, 2025
    Configuration menu
    Copy the full SHA
    d438f52 View commit details
    Browse the repository at this point in the history
Loading