The following parameter silently and you get a dump with gzip:6 (default):
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
The following parameter silently and you get a dump with gzip:6 (default):
The code seems to accept only an int, and you can put
totowithout raising an error or a warning!The workaround is to ignore
compress_leveland to add this:Zstd/lz4 are so nice that this is shame that it needs a workaround.
Ideas:
compress_algorithm(that would perhaps make it easier to raise an error for PG<16)zstd:9