pgsql: Open output file before sleeping in pg_recvlogical. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Open output file before sleeping in pg_recvlogical.
Date
Msg-id E1WlCUE-0004ZX-KE@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e7873b74d9c1bb7a325960f52043db6de88e6e66

Modified Files
--------------
src/bin/pg_basebackup/pg_recvlogical.c |   34 ++++++++++++++++----------------
1 file changed, 17 insertions(+), 17 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Initialize tsId and dbId fields in WAL record of COMMIT PREPARED
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix thinko in logical decoding of commit-prepared records.