cockroachdb / cockroachdb/cockroach
sql: support DROP FUNCTION CASCADE
Open
C-enhancement
T-sql-foundations
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
**Is your feature request related to a problem? Please describe.**
Currently, `DROP FUNCTION CASCADE` is not supported. Namely, if a function is used by a table, the function cannot be dropped until the dependent constraint, column default or the table is replaced/dropped.
**Describe the solution you'd like**
Support `DROP FUNCTION CASCADE` depend which automatically drop dependent constraint of column default.
Jira issue: CRDB-26920
Epic CRDB-60817
Contributor guide
Assessment
This issue has not been assessed yet.