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: support a LIKE clause in CREATE TENANT to copy over capabilities and setting overrides #98573

Closed
knz opened this issue Mar 14, 2023 · 0 comments · Fixed by #98574
Closed
Assignees
Labels
A-multitenancy Related to multi-tenancy C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-multitenant Issues owned by the multi-tenant virtual team

Comments

@knz
Copy link
Contributor

knz commented Mar 14, 2023

This is needed as prerequisite to solving #94856 - we will want config defaults to propagate to tenants created after the defaults have been loaded up.

Something like:

  • during cluster startup

    CREATE TENANT app_tenant_template;
    ALTER TENANT app_tenant_template GRANT CAPABILITY ...
    
  • later when ready to use

    CREATE TENANT app LIKE app_tenant_template;
    CREATE TENANT app LIKE app_tenant_template FROM REPLICATION STREAM ...;
    

Epic: CRDB-23559

Jira issue: CRDB-25342

@knz knz added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) A-multitenancy Related to multi-tenancy T-multitenant Issues owned by the multi-tenant virtual team labels Mar 14, 2023
@knz knz self-assigned this Mar 14, 2023
@craig craig bot closed this as completed in 7109264 Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-multitenancy Related to multi-tenancy C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-multitenant Issues owned by the multi-tenant virtual team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant