Change HAVE_LIBLZ4 and HAVE_LIBZSTD tests to USE_LZ4 and USE_ZSTD.
Robert Haas <rhaas@postgresql.org>
Change HAVE_LIBLZ4 and HAVE_LIBZSTD tests to USE_LZ4 and USE_ZSTD. These tests were added recently, but older code tests USE_LZ4 rathr than HAVE_LIBLZ4, so let's follow the established precedent. It also seems more consistent with the intent of the configure tests, since I think that the USE_* symbols are intended to correspond to what the user requested, and the HAVE_* symbols to what configure found while probing. Discussion: http://postgr.es/m/CA+Tgmoap+hTD2-QNPJLH4tffeFE8MX5+xkbFKMU3FKBy=ZSNKA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/basebackup_lz4.c | modified | +4 −4 |
| src/backend/replication/basebackup_zstd.c | modified | +4 −4 |
| src/bin/pg_basebackup/bbstreamer_lz4.c | modified | +6 −6 |
| src/bin/pg_basebackup/bbstreamer_zstd.c | modified | +6 −6 |
| src/bin/pg_basebackup/pg_receivewal.c | modified | +3 −3 |
| src/bin/pg_basebackup/t/020_pg_receivewal.pl | modified | +1 −1 |
| src/bin/pg_basebackup/walmethods.c | modified | +10 −10 |
| src/bin/pg_dump/t/002_pg_dump.pl | modified | +1 −1 |
| src/bin/pg_verifybackup/t/008_untar.pl | modified | +2 −2 |
| src/bin/pg_verifybackup/t/009_extract.pl | modified | +2 −2 |
| src/bin/pg_verifybackup/t/010_client_untar.pl | modified | +2 −2 |
Discussion
- refactoring basebackup.c 233 messages · 2020-05-08 → 2023-04-12