Refactor replication connection code of various pg_basebackup utilities.
Andres Freund <andres@anarazel.de>
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
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_basebackup/pg_basebackup.c | modified | +3 −18 |
| src/bin/pg_basebackup/pg_receivexlog.c | modified | +6 −32 |
| src/bin/pg_basebackup/pg_recvlogical.c | modified | +27 −89 |
| src/bin/pg_basebackup/streamutil.c | modified | +175 −2 |
| src/bin/pg_basebackup/streamutil.h | modified | +11 −0 |