Skip to content

sql: consider disabling cross database type references #49809

@rohany

Description

@rohany

Now that we are adding user defined schemas, there aren't many reasons to provide cross database object references. In particular, cross database type references can lead to problems around cockroach dump, as well as DROP TYPE affecting data in other databases. It seems like we should disallow creating tables with types in other databases.

Relates to #47765.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions