From d3d414696f39e2b57072fab3dd4fa11e465be4ed Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Sat, 11 Dec 2010 09:27:37 -0500 Subject: Allow bidirectional copy messages in streaming replication mode. Fujii Masao. Review by Alvaro Herrera, Tom Lane, and myself. --- src/interfaces/libpq/fe-protocol2.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/interfaces/libpq/fe-protocol2.c') diff --git a/src/interfaces/libpq/fe-protocol2.c b/src/interfaces/libpq/fe-protocol2.c index 31eff831ee0..ccf13423294 100644 --- a/src/interfaces/libpq/fe-protocol2.c +++ b/src/interfaces/libpq/fe-protocol2.c @@ -541,6 +541,10 @@ pqParseInput2(PGconn *conn) case 'H': /* Start Copy Out */ conn->asyncStatus = PGASYNC_COPY_OUT; break; + /* + * Don't need to process CopyBothResponse here because + * it never arrives from the server during protocol 2.0. + */ default: printfPQExpBuffer(&conn->errorMessage, libpq_gettext( -- cgit v1.2.3