-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: drop schema can lead to dangling function references
Previously, the DROP SCHEMA CASCADE command could leave dangling function references. This would cause tables or functions that referenced functions in the dropped schema to become unusable. The issue stemmed from the legacy schema changer not preventing the deletion of functions with cross-schema dependencies. This patch addresses the problem by blocking such drops from executing with a dependent object error. The declarative schema changer implements this cascade behaviour properly. Fixes: #120353 Release note (bug fix): DROP SCHEMA CASCADE could lead to dangling function references in other schemas accessing any functions.
- Loading branch information
Showing
4 changed files
with
49 additions
and
3 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
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