pg_dump: Move connection-setup code to a separate function.
authorRobert Haas <rhaas@postgresql.org>
Fri, 27 Jan 2012 15:59:27 +0000 (10:59 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 27 Jan 2012 15:59:27 +0000 (10:59 -0500)
commite43166a557d5f28aa66fa15be12fdc6a8ebe380a
treec3f8cc938fec8298f4eb489f9b3bdca66cc2908a
parent59c67ecdd39725aaee0db6e09f399c8e6c248f22
pg_dump: Move connection-setup code to a separate function.

Parallel dump will need to repeat these steps for each new connection,
so it's better to have this logic in its own function.

Extracted (with some changes) from a much larger patch
by Joachim Wieland.
src/bin/pg_dump/pg_dump.c