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/5396~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/5396
Choose a head ref
  • 2 commits
  • 5 files changed
  • 2 contributors

Commits on Aug 29, 2025

  1. Add option to check all addrs for target_session.

    The current behaviour of libpq with regard to searching
    for a matching target_session_attrs in a list of addrs is
    that after successfully connecting to a server if the servers
    session_attr does not match the request target_session_attrs
    no futher address is considered. This behaviour is extremely
    inconvenient in environments where the user is attempting to
    implement a high availability setup without having to modify
    DNS records or a proxy server config.
    
    This PR adds a client side option called check_all_addrs.
    When set to 1 this option will tell libpq to continue checking
    any remaining addresses even if there was a target_session_attrs
    mismatch on one of them.
    
    Author: Andrew Jackson
    Reviewed-by: Andrey Borodin
    Discussion: https://www.postgresql.org/message-id/flat/CAKK5BkESSc69sp2TiTWHvvOHCUey0rDWXSrR9pinyRqyfamUYg%40mail.gmail.com
    CommanderKeynes authored and Commitfest Bot committed Aug 29, 2025
    Configuration menu
    Copy the full SHA
    e633a7a View commit details
    Browse the repository at this point in the history
  2. [CF 5396] v7 - Add Option to Check All Addresses For Matching target_…

    …session_attr
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5396
    
    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/CAKK5BkHvU1iFXMiexSgu=Wz4A9TtL0ey5teNNTdy4BR+aZFmYw@mail.gmail.com
    Author(s): Andrew Jackson
    Commitfest Bot committed Aug 29, 2025
    Configuration menu
    Copy the full SHA
    48bd493 View commit details
    Browse the repository at this point in the history
Loading