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

Add support for PRIMARY_ZONE / ZONES / PRIMARY_RACK / RACKS / PRIMARY_HOST / HOSTS #28697

Closed
morgo opened this issue Oct 11, 2021 · 0 comments
Closed
Assignees

Comments

@morgo
Copy link
Contributor

morgo commented Oct 11, 2021

Enhancement

Part of #18030

In the spec, we include syntactic sugar for the names: REGION, ZONE, RACK, HOST. Currently we've only implemented REGION. Example:

mysql> create placement policy myplacement primary_region="us-east-1" regions="us-east-1";
Query OK, 0 rows affected (0.09 sec)

mysql> alter placement policy myplacement primary_zone="us-east-1a" zones="us-east-1a";
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 47 near "primary_zone="us-east-1a" zones="us-east-1a"" 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants