-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#25742] YSQL: alter database rename/owner must have global-impact
Summary: Commit 3b31c0b has made several types of alter database DDL statements non-global impact, including alter database rename and alter database owner. It turns out that alter database rename and alter database owner must have global-impact or else we run into problems. In case of alter database rename, we can later have drop database hang, and for alter database owner, we can later prevents/allows a database operation incorrectly. I made changes to revert alter database rename/owner back to have global impact. Added new unit tests that would fail if they were non-global impact. Jira: DB-15024 Test Plan: ./yb_build.sh --cxx-test pg_catalog_version-test --gtest_filter PgCatalogVersionTest.AlterDatabaseRename ./yb_build.sh --cxx-test pg_catalog_version-test --gtest_filter PgCatalogVersionTest.AlterDatabaseOwner ./yb_build.sh --cxx-test pg_catalog_version-test --gtest_filter PgCatalogVersionTest.AlterDatabaseCatalogVersionIncrement Reviewers: kfranz, mihnea, sanketh Reviewed By: kfranz Subscribers: yql, svc_phabricator Differential Revision: https://phorge.dev.yugabyte.com/D41476
- Loading branch information
Showing
2 changed files
with
135 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters