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: allow atomic name swaps #12188

Open
cockroach-teamcity opened this issue Nov 4, 2021 · 1 comment
Open

sql: allow atomic name swaps #12188

cockroach-teamcity opened this issue Nov 4, 2021 · 1 comment

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Nov 4, 2021

Exalate commented:

cockroachdb/cockroach#70334 --- Release note (sql change): It's now possible to swap names (for tables, etc.) in the same transaction. For example: CREATE TABLE foo(); BEGIN; ALTER TABLE foo RENAME TO bar; CREATE TABLE foo(); COMMIT; Previously, we'd be getting a "relation ... already exists" error.

Jira Issue: DOC-1676

@github-actions
Copy link

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
10 days to keep the issue queue tidy. Thank you for your contribution
to CockroachDB docs!

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

4 participants