-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: emit NOTICEs when implicitly dropping indexes
Previously, users would have to either know ahead of time or later discover if an index would be implicitly dropped by dropping a column that the index referenced. At best, this was mildly surprising. At worst, workloads could be dramatically impacted without much indication as to why. To ensure implicit drops do not go unnoticed, this commit updates `ALTER TABLE ... DROP COLUMN ...` to emit NOTICEs for each implicitly dropped index. Fixes: #106907 Release note (sql change): NOTICEs are now emitted for each index dropped by an `ALTER TABLE ... DROP COLUMN ...` statement.
- Loading branch information
Showing
3 changed files
with
21 additions
and
4 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