Skip to content
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

Lots of psql duplicate key errors for device_uniqueness and users_name_key #5961

Open
matrixbot opened this issue Dec 17, 2023 · 0 comments
Open

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 17, 2023

This issue has been migrated from #5961.


We get thousands of these a day:

2019-09-02 00:00:03.009 UTC [matrix main] ERROR:  duplicate key value violates unique constraint "device_uniqueness"
2019-09-02 00:00:04.622 UTC [matrix main] ERROR:  duplicate key value violates unique constraint "users_name_key"

They are due (I think) to our poor man's upsert impl, which we should replace with a proper upsert.

@matrixbot matrixbot changed the title Dummy issue Lots of psql duplicate key errors for device_uniqueness and users_name_key Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant