pgsql: pg_dump: Reduce dependencies on global variables. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: pg_dump: Reduce dependencies on global variables.
Date
Msg-id E1RuSxj-0005YX-1Q@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
pg_dump: Reduce dependencies on global variables.

Change various places in the code that are referencing the global
Archive object g_fout to instead reference the Archive object fout
which is already being passed as a parameter.  For parallel pg_dump to
work, we're going to need multiple Archive(Handle) objects, so the
real solution here is to pass down the Archive object to everywhere
that it needs to go, but we might as well pick the low-hanging fruit
first.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/622f862868992e3b7ded31d79403a4f63281f44a

Modified Files
--------------
src/bin/pg_dump/pg_dump.c |   66 ++++++++++++++++++++++----------------------
1 files changed, 33 insertions(+), 33 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Add locking around WAL-replay modification of shared-memory vari
Next
From: Tom Lane
Date:
Subject: pgsql: Avoid problems with OID wraparound during WAL replay.