-
Notifications
You must be signed in to change notification settings - Fork 178
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
Clear repack index artefacts when dropping the extension #437
Labels
Comments
za-arthur
added a commit
that referenced
this issue
Jan 26, 2025
When using --only-indexes pg_repack uses different approach to repack indexes, which is running CREATE INDEX CONCURRENTLY command to create a temporary index and swapping the target index and the temporary index afterwards. That approach didn't use any cleanup callbacks and therefore in case of an error temporary indexes wouldn't be cleaned up. The commit adds the callback repack_cleanup_index.
thanks for addressing this @za-arthur 🙌 |
za-arthur
added a commit
that referenced
this issue
Feb 3, 2025
…440) When using --only-indexes pg_repack uses different approach to repack indexes, which is running CREATE INDEX CONCURRENTLY command to create a temporary index and swapping the target index and the temporary index afterwards. That approach didn't use any cleanup callbacks and therefore in case of an error temporary indexes wouldn't be cleaned up. The commit adds the callback repack_cleanup_index.
I merged the PR #440 and I'm closing this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We recently started using
--only-indexes
and started seeing messages like this:I can see that the extension drop clears everything else but the indexes. We tend to do
if there are leftover repack artefacts but it hasn't been clearing the indexes
The text was updated successfully, but these errors were encountered: