-
Notifications
You must be signed in to change notification settings - Fork 54
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
fix: extended Postgres code to support retention policy + refactoring #2244
Conversation
This PR may contain changes to database schema of one of the drivers. If you are introducing any changes to the schema, make sure the upgrade from the latest release to this change passes without any errors/issues. Please make sure the label |
You can find the image built from this PR at
Built from a9391f4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks
We using Mib or MB ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I added a few nitpick comments though :)
Thanks ! 💯
Co-authored-by: Simon-Pierre Vivier <simvivier@status.im>
Since it is on the node level, then we use MiB i.e. denominator is 1024 not 1000 |
I think I saw a MB somewhere. |
Description
The bug was caused due to Postgres not supporting the SQLite like functionality on the retention policy. Changes introduce Postgres to calculate the database size. Also, some refactoring for a cleaner code interface.
The calculation form GB/MB to bytes is done wrong on purpose since it touches the client-facing interface thus requires a wider conversation and will be corrected in a different PR under the #2247
Changes
Issue
closes #2242