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

sql: applying similar zone configs across many tables is cumbersome #40703

Closed
solongordon opened this issue Sep 12, 2019 · 5 comments
Closed
Labels
A-partitioning C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)

Comments

@solongordon
Copy link
Contributor

Forked from #39357.

We've made it easier to apply zone configs to analogous partitions across a table and its indexes. However it's also common to have analogous partitions across many tables, and that still requires running CONFIGURE ZONE statements for every single table. It would be great to make this less cumbersome.

Quoting @andreimatei:

I think a key thing here is to somehow tie together all the "north_america" partitions of different tables and have all of them point to a single "zone config". As it stands, zone configs are defined by a start and end key, so there's no such thing as different tables or partitions pointing to the same zone config. But there should be.
One has to be able to edit the constraints/attributes of all north_america partitions at once, and code that deals with zone (e.g. reporting) should be able to report only one zone for all the north_americas.

@solongordon solongordon added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) A-partitioning labels Sep 12, 2019
@awoods187
Copy link
Contributor

+1 on this idea

@github-actions
Copy link

github-actions bot commented Jun 4, 2021

We have marked this issue as stale because it has been inactive for
18 months. If this issue is still relevant, removing the stale label
or adding a comment will keep it active. Otherwise, we'll close it in
5 days to keep the issue queue tidy. Thank you for your contribution
to CockroachDB!

@knz
Copy link
Contributor

knz commented Jun 5, 2021

still current

@jlinder jlinder added the T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) label Jun 16, 2021
@ajwerner
Copy link
Contributor

The feels decreasingly current with the new multi-region abstractions and the ability to configure tables. I feel inclined to close this as we've found more opinionated views on multi-region configuration abstractions lately. @awoods187 close if you agree?

@awoods187
Copy link
Contributor

i think we can. Note, we do want the optimizer to be able to connect tables with partitions in the same region (analogous to the above) but I think that's handled separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-partitioning C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
None yet
Development

No branches or pull requests

5 participants