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
pg_repack corrupts an unlogged table #71
Comments
Yeah, I wouldn't be surprised if there is a glaring It probably wouldn't be too difficult to fix this in |
I think the same. For me we could refuse to work on unlogged tables. However points 2. and 4. in the timeline seem suspicious. |
@schmiddy This is postgresql 9.5. Yes, sure oom-kill. I expect the unlogged table is truncated when server restart. But somehow some data seems to persist . Maybe something to do with the initialization fork ? |
@dvarrazzo (4) -- Yes, this is suspicious. pg_repack usually die when it can not connect. But it was retrying when this corruption occur. I think the easiest fix is just skip all temp and unlogged tables. |
Should filter out unlogged tables |
Do not repack unlogged tables (close #71)
I have no idea how it happend, but this is what I seen:
I guess unlogged tables should not be repacked in the first place, right?
The text was updated successfully, but these errors were encountered: