cockroachdb / cockroachdb/cockroach

sql: support DROP FUNCTION CASCADE

Open
#101,380 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.