Add ArchiveOpts to pass options to ArchiveEntry

Enterprise / PostgreSQL - Alvaro Herrera [alvh.no-ip.org] - 1 February 2019 14:29 EST

The ArchiveEntry function has a number of arguments that can be considered optional. Split them out into a separate struct, to make the API more flexible for changes.

Author: Dmitry Dolgov Discussion: https://postgr.es/m/CA+q6zcXRxPE+qp6oerQWJ3zS061WPOhdxeMrdc-Yf-2V5vsrEw@mail.gmail.com

f831d4accd Add ArchiveOpts to pass options to ArchiveEntry
src/bin/pg_dump/pg_backup_archiver.c | 117 ++---
src/bin/pg_dump/pg_backup_archiver.h | 30 +-
src/bin/pg_dump/pg_dump.c | 952 +++++++++++++++++------------------
3 files changed, 522 insertions(+), 577 deletions(-)

Upstream: git.postgresql.org


  • Share