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

Add warning for poor compression ratio #7756

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kpan2034
Copy link
Contributor

Adds functionality to emit a warning to the user when the compression ratio is bad.

@kpan2034
Copy link
Contributor Author

This change breaks roughly half our tests, since compressing chunks with only a few rows leads to a bad compression ratio. I considered adding this behind a GUC, which should probably be on by default, but except for testing I don't think there's ever a case where we want it to be OFF.

We can either:

  • Add a GUC that enables this warning, and set it to OFF for all our tests.
  • Update the affected tests with the warning that is emitted.

However, if we'd like to do more than just emit a warning in the future, then perhaps a GUC makes more sense, since that is something users might like to turn off. What are your thoughts on this @antekresic?

@philkra philkra modified the milestone: v2.19.0 Feb 20, 2025
@kpan2034 kpan2034 force-pushed the add-compression-warning branch from cb72a87 to 47b4738 Compare March 3, 2025 14:21
Adds functionality to emit a warning to the user when the compression
ratio is "bad".

Currently, "bad" is defined to be when size after compression is higher
than after compression.
@kpan2034 kpan2034 force-pushed the add-compression-warning branch from 47b4738 to 076e1b0 Compare March 4, 2025 08:32
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