Skip to content
Discussion options

You must be logged in to vote

@pySage

s there a supported mechanism or recommended workflow in CrateDB to recreate or migrate a table during a major version upgrade while preserving the original _id values, thereby keeping downstream references valid?

If yes — can you share best-practices or example workflows (e.g., INSERT … SELECT, COPY TO / FROM, snapshot/restore) for preserving _id values through migration?

As you probably already figured out, it's not possible to provide a custom value for the internal _id column in general (it won't complain, but will still generate a new UUID).
But one important point to know here is that, when a user defines only 1 primary key column, the value stored inside this column is al…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@seut
Comment options

seut Oct 29, 2025
Maintainer

@pySage
Comment options

Answer selected by pySage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants