-
Notifications
You must be signed in to change notification settings - Fork 2
Comparing changes
Open a pull request
base repository: postgresql-cfbot/postgresql
base: cf/5681~1
head repository: postgresql-cfbot/postgresql
compare: cf/5681
- 5 commits
- 9 files changed
- 2 contributors
Commits on Aug 10, 2025
-
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.
Configuration menu - View commit details
-
Copy full SHA for 2ab6997 - Browse repository at this point
Copy the full SHA 2ab6997View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 8e25e1d - Browse repository at this point
Copy the full SHA 8e25e1dView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 89ff380 - Browse repository at this point
Copy the full SHA 89ff380View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 5366f8f - Browse repository at this point
Copy the full SHA 5366f8fView commit details -
[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 committedAug 10, 2025 Configuration menu - View commit details
-
Copy full SHA for 684890a - Browse repository at this point
Copy the full SHA 684890aView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff cf/5681~1...cf/5681