-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: consider disabling cross database type references #49809
Copy link
Copy link
Closed
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)