-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: Add support for triggers in CockroachDB #28296
Comments
+1 for this. One question, is there any reason this issue is under a project that appears to be "deprecated"? |
Only because of internal organizational change since this was filed. Triggers very much depends on some form of #17511. I think we've increasingly got an idea of what goes in to a basic form of it. That's not a small project by any stretch. After that, integrating triggers into the query planning layer is also not a small project. I do think there's some enthusiasm around doing this but I wouldn't expect it to happen for at least another couple of releases (which would mean at least a year from now). Even that would be pretty ambitious. |
Thank you for all the information, it's good to know this hasn't been forgotten! Please take as much time as needed to do this correctly, I'll be patiently waiting. Keep up the awesome work 👌 |
Any ETA on this? This is preventing me from migrating from sql server stored on my laptop to cockroachDB. Of which I would love to use cockroachDB in the future to try it out with my Discord Bot. As much as I would love to keep it on my laptop, there is no guarantee (unlike cockroachDB that my laptop won't be infected by a virus that could wipe the db out). (I care more about triggers than stored procedures atm) |
@AraHaan you need part of the work that will be done/is done in stored procedures to unblock work on triggers. So for now, we'll have to wait on both. |
Heyo |
We've been hard at work on implementing UDFs, which are a pre-requisite for triggers. In the previous release we previewed support for basic UDFs. We have been continuing down that path. We don't yet support performing writes from UDFs. This issue has not been ignored, but is large. |
I see! Thanks a lot @ajwerner! Really appreciate the quick response. Good luck |
Just to be more concrete, I don't expect triggers to be implemented for at least another year. |
Feature request to add support for triggers in CockroachDB
Epic CRDB-347
Jira issue: CRDB-4914
The text was updated successfully, but these errors were encountered: