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

Drop indices concurrently on background updates #18091

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

erikjohnston
Copy link
Member

Otherwise these can race with other long running queries and lock out all other queries.

This caused problems in v1.22.0 as we added an index to events table in #17948, but that got interrupted and so next time we ran the background update we needed to delete the half-finished index. However, that got blocked behind some long running queries and then locked other queries out (stopping workers from even starting).

Otherwise these can race with other long running queries and lock out
all other queries.
@erikjohnston erikjohnston requested a review from a team as a code owner January 17, 2025 11:16
Copy link
Member

@devonh devonh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have gone through the Postgres docs with a fine-toothed comb and cross referenced against what Synapse does, and have come to the conclusion that this change is good. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants