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 "inserting" DEFAULT into a computed column #22434
Comments
The previous implementation I had of this was incorrect - I think the correct implementation is a bit involved so I'm putting out a fix for the immediate issue and I've opened cockroachdb#22434 to track the correct fix. Release note (bug fix): Disallowed any inserts into computed columns.
Fixes cockroachdb#22410. The previous implementation I had of this was incorrect - I think the correct implementation is a bit involved so I'm putting out a fix for the immediate issue and I've opened cockroachdb#22434 to track the correct fix. Release note (bug fix): Disallowed any inserts into computed columns.
Fixes cockroachdb#22410. The previous implementation I had of this was incorrect - I think the correct implementation is a bit involved so I'm putting out a fix for the immediate issue and I've opened cockroachdb#22434 to track the correct fix. Release note (bug fix): Disallowed any inserts into computed columns.
@RaduBerinde seems like a planning issue, moving over to planning for triage. |
Hey there, I know this is an older issue, but we're currently trying to migrate from Postgres to Cockroach, and this is a blocker. We have a few expression indexes we've moved to indexes on computed columns specifically for Cockroach compatibility, but Cockroach is now choking on the SQL dumps (which have Any ideas, outside of some fiddly |
Unfortunately, there's no workaround for this problem right now - we'd need to fix the deficiency (which we'd like to do, btw). For now, I think you'll have to do some fiddly |
We have marked this issue as stale because it has been inactive for |
The RFC specifies that users should be able to specify a computed column in their list of columns to be inserted into or updated, provided that the insert uses a
VALUES
clause and every value being inserted into that column is aDEFAULT
.Jira issue: CRDB-5857
The text was updated successfully, but these errors were encountered: