postgresql/src/bin/pg_dump
Tom Lane 5b5fea2a11 Access pg_dump's options structs through Archive struct, not directly.
Rather than passing around DumpOptions and RestoreOptions as separate
arguments, add fields to struct Archive to carry pointers to these objects,
and access them through those fields when needed.  There already was a
RestoreOptions pointer in Archive, though for no obvious reason it was part
of the "private" struct rather than out where pg_dump.c could see it.

Doing this allows reversion of quite a lot of parameter-addition changes
made in commit 0eea8047bf, which is a good thing IMO because this will
reduce the code delta between 9.4 and 9.5, probably easing a few future
back-patch efforts.  Moreover, the previous commit only added a DumpOptions
argument to functions that had to have it at the time, which means we could
anticipate still more code churn (and more back-patch hazard) as the
requirement spread further.  I'd hit exactly that problem in my upcoming
patch to fix extension membership marking, which is what motivated me to
do this.
2016-01-13 17:48:33 -05:00
..
po Translation updates 2015-06-28 23:56:55 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
common.c Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
compress_io.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
compress_io.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
dumputils.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
dumputils.h Run pgindent on src/bin/pg_dump/* 2016-01-13 15:48:54 -05:00
keywords.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Update copyright for 2016 2016-01-02 13:33:40 -05:00
nls.mk Add missing source files to nls.mk 2014-07-15 10:10:42 -04:00
parallel.c Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
parallel.h Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
pg_backup_archiver.c Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
pg_backup_archiver.h Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
pg_backup_custom.c Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
pg_backup_db.c In pg_dump, remember connection passwords no matter how we got them. 2015-12-23 14:25:53 -05:00
pg_backup_db.h pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_directory.c Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
pg_backup_null.c Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
pg_backup_tar.c Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_backup_utils.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_backup.h Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
pg_dump_sort.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_dump.c Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
pg_dump.h Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
pg_dumpall.c Run pgindent on src/bin/pg_dump/* 2016-01-13 15:48:54 -05:00
pg_restore.c Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00