postgresql/src/bin
Robert Haas ffd53659c4 Replace BASE_BACKUP COMPRESSION_LEVEL option with COMPRESSION_DETAIL.
There are more compression parameters that can be specified than just
an integer compression level, so rename the new COMPRESSION_LEVEL
option to COMPRESSION_DETAIL before it gets released. Introduce a
flexible syntax for that option to allow arbitrary options to be
specified without needing to adjust the main replication grammar,
and common code to parse it that is shared between the client and
the server.

This commit doesn't actually add any new compression parameters,
so the only user-visible change is that you can now type something
like pg_basebackup --compress gzip:level=5 instead of writing just
pg_basebackup --compress gzip:5. However, it should make it easy to
add new options. If for example gzip starts offering fries, we can
support pg_basebackup --compress gzip:level=5,fries=true for the
benefit of users who want fries with that.

Along the way, this fixes a few things in pg_basebackup so that the
pg_basebackup can be used with a server-side compression algorithm
that pg_basebackup itself does not understand. For example,
pg_basebackup --compress server-lz4 could still succeed even if
only the server and not the client has LZ4 support, provided that
the other options to pg_basebackup don't require the client to
decompress the archive.

Patch by me. Reviewed by Justin Pryzby and Dagfinn Ilmari Mannsåker.

Discussion: http://postgr.es/m/CA+TgmoYvpetyRAbbg1M8b3-iHsaN4nsgmWPjOENu5-doHuJ7fA@mail.gmail.com
2022-03-23 09:19:14 -04:00
..
initdb Fix global ICU collations for ICU < 54 2022-03-20 10:21:45 +01:00
pg_amcheck Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
pg_archivecleanup Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
pg_basebackup Replace BASE_BACKUP COMPRESSION_LEVEL option with COMPRESSION_DETAIL. 2022-03-23 09:19:14 -04:00
pg_checksums Remove workarounds for avoiding [U]INT64_FORMAT in translatable strings. 2022-03-21 11:11:55 -04:00
pg_config Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
pg_controldata Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
pg_ctl Introduce PG_TEST_TIMEOUT_DEFAULT for TAP suite non-elapsing timeouts. 2022-03-04 18:53:13 -08:00
pg_dump Add missing dependency of pg_dumpall to WIN32RES. 2022-03-22 08:22:02 -07:00
pg_resetwal Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
pg_rewind Add circular WAL decoding buffer, take II. 2022-03-18 18:45:47 +13:00
pg_test_fsync Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
pg_test_timing Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
pg_upgrade Add option to use ICU as global locale provider 2022-03-17 11:13:16 +01:00
pg_verifybackup Change HAVE_LIBLZ4 and HAVE_LIBZSTD tests to USE_LZ4 and USE_ZSTD. 2022-03-15 13:06:25 -04:00
pg_waldump Add circular WAL decoding buffer, take II. 2022-03-18 18:45:47 +13:00
pgbench Allow pgbench to retry in some cases. 2022-03-23 19:05:45 +09:00
pgevent Update copyright for 2022 2022-01-07 19:04:57 -05:00
psql Add ALTER SUBSCRIPTION ... SKIP. 2022-03-22 07:11:19 +05:30
scripts Add option to use ICU as global locale provider 2022-03-17 11:13:16 +01:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00