pg_dump: Further reduce reliance on global variables.
Robert Haas <rhaas@postgresql.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/pg_backup_archiver.c | modified | +10 −0 |
| src/bin/pg_dump/pg_backup_archiver.h | modified | +1 −0 |
| src/bin/pg_dump/pg_backup_db.c | modified | +24 −0 |
| src/bin/pg_dump/pg_backup_db.h | modified | +4 −0 |
| src/bin/pg_dump/pg_dump.c | modified | +179 −270 |