Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0070b66

Browse files
committed
pg_dump: Use only LZ4 frame format for compression
After0da243f got committed, it was reported that in some cases thecompression ratio is rather poor - particularly for custom format withnarrow tables - due to writing the LZ4 header/footer for each row.This commit switches to LZ4F (LZ4 frame format), eliminating most of theoverhead and greatly improving the compression ratio. This makes thecompressed size about the same for plain and custom formats (just likefor gzip, for example).LZ4F is now used by both compression APIs, which allowed refactoring andreusing more of the code. For consistency this also renames the LZ4Filestruct to LZ4State, and a number of functions are now prefixed withLZ4Stream_ (instead of LZ4File_).Patch by Georgios Kokolatos, based on report and initial patch by JustinPryzby. Review and minor cleanups by me.Author: Georgios Kokolatos, Justin PryzbyReported-by: Justin PryzbyReviewed-by: Tomas VondraDiscussion:https://postgr.es/m/20230227044910.GO1653%40telsasoft.com
1 parentc8f8d0e commit0070b66

File tree

1 file changed

+343
-211
lines changed

1 file changed

+343
-211
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp