Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-20.2: sql: disallow cross-database foreign keys and views #54520

Merged

Conversation

RaduBerinde
Copy link
Member

@RaduBerinde RaduBerinde commented Sep 17, 2020

Backport:

Please see individual PRs for details.

Informs #54126.

/cc @cockroachdb/release

This change disallows cross-database foreign key references and adds
a cluster setting to allow them (false by default).

Informs cockroachdb#54126.

Release note (sql change): creating cross-database foreign key
references is now disallowed (and can be re-enabled via a cluster
setting).
This change disallows views from referring to tables in other
databases (except `system`) and adds a cluster setting to allow them
(false by default).

Informs cockroachdb#54126.

Release note (sql change): creating views that refer to tables in
other databases is now disallowed (and can be re-enabled via a cluster
setting).
@RaduBerinde RaduBerinde requested review from ajwerner and a team September 17, 2020 18:04
@RaduBerinde RaduBerinde requested a review from a team as a code owner September 17, 2020 18:04
@RaduBerinde RaduBerinde requested review from adityamaru and removed request for a team September 17, 2020 18:04
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 9 of 9 files at r1, 12 of 12 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @adityamaru)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants