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

Commits on Aug 10, 2025

  1. Prevent internal error at concurrent CREATE OR REPLACE FUNCTION

    Previously, concurrent CREATE OR REPLACE FUNCTION commands could fail
    with an internal error "tuple concurrently updated". This occurred
    because multiple sessions attempted to modify the same catalog tuple
    simultaneously.
    
    To prevent this, ensure that an exclusive lock on the function object
    is acquired earlier in the process.
    
    Additionally, if the target function is dropped by another session while
    waiting for the lock, a new function is created instead.
    yugo-n authored and Commitfest Bot committed Aug 10, 2025
    Configuration menu
    Copy the full SHA
    2ab6997 View commit details
    Browse the repository at this point in the history
  2. Prevent internal error caused by concurrent ALTER FUNCTION

    Previously, concurrent ALTER FUNCTION commands could fail with an
    internal error "tuple concurrently updated". This occurred
    because multiple sessions attempted to modify the same catalog tuple
    simultaneously.
    
    To prevent this, ensure that an exclusive lock on the function object
    is acquired earlier in the process.
    
    Additionally, if the target function is dropped by another session while
    waiting for the lock, an appropriate error is raised to indicate the
    object no longer exists.
    yugo-n authored and Commitfest Bot committed Aug 10, 2025
    Configuration menu
    Copy the full SHA
    8e25e1d View commit details
    Browse the repository at this point in the history
  3. Improve error reporting for concurrent updates on system catalog tuples

    Previously, when multiple sessions attempted to modify the same system
    catalog tuple concurrently due to insufficient locking, DDL commands could
    fail with an internal error:
    
    ERROR:  tuple concurrently updated
    
    This commit improves the behavior by reporting a more appropriate and
    user-facing error message in such cases, making it easier for users to
    understand the cause of the failure.
    yugo-n authored and Commitfest Bot committed Aug 10, 2025
    Configuration menu
    Copy the full SHA
    89ff380 View commit details
    Browse the repository at this point in the history
  4. Improve error reporting for unique key violations in system catalogs

    Previously, when a unique constraint violation occurred in a system catalog,
    typically due to a concurrent session creating an object with the same key,
    a low-level error like the following was raised by nbtree code:
    
     ERROR:  duplicate key value violates unique constraint ...
    
    However, this message is not very user-friendly, as users are not directly
    inserting rows into the system catalogs.
    
    This commit improves the error reporting by generating a more descriptive and
    user-facing error message in such cases, making it easier to understand the
    cause of the failure and its likely relation to concurrent DDL activity.
    yugo-n authored and Commitfest Bot committed Aug 10, 2025
    Configuration menu
    Copy the full SHA
    5366f8f View commit details
    Browse the repository at this point in the history
  5. [CF 5681] v8 - Prevent internal error at concurrent CREATE OR REPLACE…

    … / ALTER FUNCTION
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5681
    
    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): Yugo Nagata
    Commitfest Bot committed Aug 10, 2025
    Configuration menu
    Copy the full SHA
    684890a View commit details
    Browse the repository at this point in the history
Loading