pgsql: Open output file before sleeping in pg_recvlogical.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Open output file before sleeping in pg_recvlogical.
Date: 2014-05-16 07:23:22
Message-ID: E1WlCUE-0004ZX-KE@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-05-16 07:54:51 pgsql: Fix thinko in logical decoding of commit-prepared records.
Previous Message Heikki Linnakangas 2014-05-16 07:13:59 pgsql: Initialize tsId and dbId fields in WAL record of COMMIT PREPARED