Skip to content

Zstd compression #159

@Krysztophe

Description

@Krysztophe

The following parameter silently and you get a dump with gzip:6 (default):

compress_level = zstd:9

The code seems to accept only an int, and you can put toto without raising an error or a warning!

The workaround is to ignore compress_level and to add this:

pg_dump_options = '-Z std:9'

Zstd/lz4 are so nice that this is shame that it needs a workaround.

Ideas:

  • raise a warning if compress_level is not recognized
  • add compress_algorithm (that would perhaps make it easier to raise an error for PG<16)
  • modify compress_level to accept zstd:9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions