aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuild.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2022-01-27 09:46:17 -0500
committerRobert Haas <rhaas@postgresql.org>2022-01-27 11:05:48 -0500
commitdabf63bc9a5b71f61c2c8712c85d33fdc06efa8c (patch)
treeff7c38b2819f1c3ccf6529013bfa2a356cf699dc /src/backend/access/gist/gistbuild.c
parentacea505186e65dff33db69517d36a02c7b4f0283 (diff)
downloadpostgresql-dabf63bc9a5b71f61c2c8712c85d33fdc06efa8c.tar.gz
postgresql-dabf63bc9a5b71f61c2c8712c85d33fdc06efa8c.zip
pg_basebackup: Fix a couple of recently-introduced bugs.
The server expects the compression level to be between 1 and 9, but Z_DEFAULT_COMPRESSION is -1, so we must not try to send that value to the server. Because pg_basebackup's -R option is implemented on the client side, it can't be used in combination with a backup target. Error out if someone tries that, instead of silently ignoring the option. Both issues were reported by Tushar Ahuja; patch by me. Discussion: http://postgr.es/m/CA+TgmoaMwgdx8HxBjF8hmbohVvPL_0H5LqNrSq0uU+7BKp_Q2A@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions