Skip to content

sql: allow atomic name swaps #12188

Open
Open
@cockroach-teamcity

Description

@cockroach-teamcity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions