Based on Andres review I have implemented the following changes in
libpq_compression:
1. Make it possible to specify list of compression algorithms in
connection string.
2. Make it possible to specify compression level.
3. Use "_pq_.compression" instead of "compression" in startup package.
4. Use full names instead of one-character encoding for compression
algorithm names.
So now it is possible to open connection in this way:
psql "dbname=postgres compression=zstd:5,zlib"
New version of the patch is attached.
--
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company