Open output file before sleeping in pg_recvlogical.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: e7873b74d9c1bb7a325960f52043db6de88e6e66
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-05-16T07:10:45Z
Releases: 9.4.0
Open output file before sleeping in pg_recvlogical.

Let's complain about e.g an invalid path or permission problem sooner rather
than later. Before this patch, we would only try to open the output file
after receiving the first decoded message from the server.

Files

PathChange+/−
src/bin/pg_basebackup/pg_recvlogical.c modified +17 −17