Refactor replication connection code of various pg_basebackup utilities.

Andres Freund <andres@anarazel.de>

Commit: 0c013e08cfbebd35ec982c4df15d44b521094d52
Author: Andres Freund <andres@anarazel.de>
Date: 2014-10-01T15:35:56Z
Releases: 9.5.0
Refactor replication connection code of various pg_basebackup utilities.

Move some more code to manage replication connection command to
streamutil.c. A later patch will introduce replication slot via
pg_receivexlog and this avoid duplicating relevant code between
pg_receivexlog and pg_recvlogical.

Author: Michael Paquier, with some editing by me.

Files