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.
Showing
- src/bin/pg_dump/pg_backup_archiver.c 10 additions, 0 deletionssrc/bin/pg_dump/pg_backup_archiver.c
- src/bin/pg_dump/pg_backup_archiver.h 1 addition, 0 deletionssrc/bin/pg_dump/pg_backup_archiver.h
- src/bin/pg_dump/pg_backup_db.c 24 additions, 0 deletionssrc/bin/pg_dump/pg_backup_db.c
- src/bin/pg_dump/pg_backup_db.h 4 additions, 0 deletionssrc/bin/pg_dump/pg_backup_db.h
- src/bin/pg_dump/pg_dump.c 179 additions, 270 deletionssrc/bin/pg_dump/pg_dump.c
Loading
Please register or sign in to comment