-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
node ace db:truncate
throws the error deadlock detected
#1027
Comments
Hi @thetutlage 👋 |
I'm experiencing the same issue with I've tested the same database schema in both Specifically, the command finds a deadlock in Basically, the command will get all tablenames from the DB and then will execute Depending on the table names and the relations between them, you might get a deadlock (image I've also tested what OP mentions (running truncate sequentially inside a |
I'm having the same issue with running |
Hey all! 👋🏻 @diego-sepulveda-lavin, may you send a PR with a failing test and a change in the PSQL dialect to use only one |
Yeah, a PR will be appreciated |
Can confirm. I'm having the same issue when using Postgresql. |
Package version
@adonisjs/lucid@20.5.1
Describe the bug
node ace db:truncate
throws the error deadlock detected but when I run all truncate queries from Datagrip console it runs successfullyReproduction repo
No response
Proof of error
Screencast.2024-05-13.16.14.16.mp4
The text was updated successfully, but these errors were encountered: