]> granicus.if.org Git - postgresql/commit
pg_dump: Further reduce reliance on global variables.
authorRobert Haas <rhaas@postgresql.org>
Tue, 7 Feb 2012 15:07:02 +0000 (10:07 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 7 Feb 2012 15:07:02 +0000 (10:07 -0500)
commit1631598ea204a3b05104f25d008b510ff5a5c94a
tree593936b8f7b0d80f69a690b194dc33950cf14675
parenta347f96b99741e44276cdd481a72d04f1b2ac5fc
pg_dump: Further reduce reliance on global variables.

This is another round of refactoring to make things simpler for parallel
pg_dump.  pg_dump.c now issues SQL queries through the relevant Archive
object, rather than relying on the global variable g_conn.  This commit
isn't quite enough to get rid of g_conn entirely, but it makes a big
dent in its utilization and, along the way, manages to be slightly less
code than before.
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.h
src/bin/pg_dump/pg_backup_db.c
src/bin/pg_dump/pg_backup_db.h
src/bin/pg_dump/pg_dump.c