Skip to content

Forbid adding generated columns to existing tables #637

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

Merged

Conversation

kvch
Copy link
Contributor

@kvch kvch commented Jan 29, 2025

This is a temporary limitation we have to introduce to make sure
people are not adding generated columns to their existing tables.
Right now, with the current approach if someone adds a new generated
column to their big table, PostgreSQL has to write the new stored
value or generate the new identity for every row, leading to possible downtime.

@kvch
Copy link
Contributor Author

kvch commented Jan 29, 2025

Improvement tracked in: #638

@kvch kvch enabled auto-merge (squash) January 29, 2025 14:02
Copy link
Collaborator

@andrew-farries andrew-farries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove the tests and add them to #638 rather than commenting out?

@kvch kvch merged commit d141492 into xataio:main Jan 31, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants