Open ajwerner opened 2 years ago
Thank you Andrew for filing this issue! It'll be nice to add it to \h ALTER TABLE
when we make this change.
@ajwerner @rafiss If it's okay I would like to work on this issue. Thanks!
Go for it! It should be a good first issue. We don't generally assign issues to community members but we gladly accept PRs.
@ajwerner I made the necessary changes in alter_table.go
and stmt.go
but it seems like the DROP EXPRESSION
is still not recognized. Even after running make
the code isn't generated for DROP EXPRESSION
. I am kind of stuck on this and would be great if you help.
Also, where can I read more about the stringer command? Thanks!
Did you update the syntax in sql.y
?
@ajwerner I somehow missed changes for this. It's working now. Thanks!
Is your feature request related to a problem? Please describe. Before postgres version 13, there was no way to tell postgres to stop using a default expression for a stored, generated column. In 13, they added
DROP EXPRESSION
syntax. Cockroach has long hadDROP STORED
syntax, which is, well, confusing and hard to discover.https://www.postgresql.org/docs/13/sql-altertable.html
Describe the solution you'd like
Support
DROP EXPRESSION
like we today supportDROP STORED
.Jira issue: CRDB-12539