From 0eea8047bf0e15b402b951e383e39236bdfe57d5 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Tue, 14 Oct 2014 15:00:55 -0300 Subject: pg_dump: Reduce use of global variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Most pg_dump.c global variables, which were passed down individually to dumping routines, are now grouped as members of the new DumpOptions struct, which is used as a local variable and passed down into routines that need it. This helps future development efforts; in particular it is said to enable a mode in which a parallel pg_dump run can output multiple streams, and have them restored in parallel. Also take the opportunity to clean up the pg_dump header files somewhat, to avoid circularity. Author: Joachim Wieland, revised by Álvaro Herrera Reviewed by Peter Eisentraut --- src/bin/pg_dump/pg_backup_utils.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/bin/pg_dump/pg_backup_utils.c') diff --git a/src/bin/pg_dump/pg_backup_utils.c b/src/bin/pg_dump/pg_backup_utils.c index a9a03961610..0d7c6dbbf07 100644 --- a/src/bin/pg_dump/pg_backup_utils.c +++ b/src/bin/pg_dump/pg_backup_utils.c @@ -14,7 +14,6 @@ #include "postgres_fe.h" #include "pg_backup_utils.h" -#include "parallel.h" /* Globals exported by this file */ const char *progname = NULL; -- cgit v1.2.3