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

Use lz4 as default PostgreSQL compression algorithm #1774

Merged
merged 2 commits into from
Jan 15, 2024
Merged

Conversation

emmiegit
Copy link
Member

By default, Postgres compresses large EXTENDED storage (such as TEXT) so the COMPRESSION directive on the column is unnecessary.

We also set the default compression algorithm to lz4, which is faster and has better compression than the default pglz. It was first added in Postgres 14.

This one is faster and achieves better compression than pglz,
but is only available in PostgreSQL starting in version 14
(which isn't a concern for us since we'll be using latest stable
to start with.)
@emmiegit emmiegit self-assigned this Jan 14, 2024
@emmiegit
Copy link
Member Author

thanks @Yossipossi1

@emmiegit emmiegit merged commit 1cb8e94 into develop Jan 15, 2024
7 checks passed
@emmiegit emmiegit deleted the lz4-compression branch January 15, 2024 06:48
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