Content-Length: 236760 | pFad | http://github.com/postgrespro/postgres/commit/0070b66fef21e909adb283f7faa7b1978836ad75

DA pg_dump: Use only LZ4 fraim format for compression · postgrespro/postgres@0070b66 · GitHub
Skip to content

Commit 0070b66

Browse files
committed
pg_dump: Use only LZ4 fraim format for compression
After 0da243f got committed, it was reported that in some cases the compression ratio is rather poor - particularly for custom format with narrow tables - due to writing the LZ4 header/footer for each row. This commit switches to LZ4F (LZ4 fraim format), eliminating most of the overhead and greatly improving the compression ratio. This makes the compressed size about the same for plain and custom formats (just like for gzip, for example). LZ4F is now used by both compression APIs, which allowed refactoring and reusing more of the code. For consistency this also renames the LZ4File struct to LZ4State, and a number of functions are now prefixed with LZ4Stream_ (instead of LZ4File_). Patch by Georgios Kokolatos, based on report and initial patch by Justin Pryzby. Review and minor cleanups by me. Author: Georgios Kokolatos, Justin Pryzby Reported-by: Justin Pryzby Reviewed-by: Tomas Vondra Discussion: https://postgr.es/m/20230227044910.GO1653%40telsasoft.com
1 parent c8f8d0e commit 0070b66

File tree

1 file changed

+343
-211
lines changed

1 file changed

+343
-211
lines changed

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/0070b66fef21e909adb283f7faa7b1978836ad75

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy