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/5494~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/5494
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 13, 2025

  1. Optimize iteration over PGPROC for fast-path lock searches.

    This commit improves efficiency in FastPathTransferRelationLocks()
    and GetLockConflicts(), which iterate over PGPROCs to search for
    fast-path locks.
    
    Previously, these functions recalculated the fast-path group during
    every loop iteration, even though it remained constant. This update
    optimizes the process by calculating the group once and reusing it
    throughout the loop.
    
    The functions also now skip empty fast-path groups, avoiding
    unnecessary scans of their slots. Additionally, groups belonging to
    inactive backends (with pid=0) are always empty, so checking
    the group is sufficient to bypass these backends, further enhancing
    performance.
    
    Author: Fujii Masao <[email protected]>
    Reviewed-by: Heikki Linnakangas <[email protected]>
    Reviewed-by: Ashutosh Bapat <[email protected]>
    Discussion: https://postgr.es/m/[email protected]
    MasaoFujii authored and Commitfest Bot committed Mar 13, 2025
    Configuration menu
    Copy the full SHA
    daaffdd View commit details
    Browse the repository at this point in the history
  2. [CF 5494] v3 - Optimizing FastPathTransferRelationLocks()

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5494
    
    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/[email protected]
    Author(s): Fujii Masao
    Commitfest Bot committed Mar 13, 2025
    Configuration menu
    Copy the full SHA
    96a4995 View commit details
    Browse the repository at this point in the history
Loading