diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-12-11 09:27:37 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-12-11 09:27:37 -0500 |
commit | d3d414696f39e2b57072fab3dd4fa11e465be4ed (patch) | |
tree | f99e5cd6209d2462424d22bcee41e036741b45f5 /src/interfaces/libpq/fe-protocol2.c | |
parent | 20f396429186a35a81fc7ef3ad34c3134ead2992 (diff) | |
download | postgresql-d3d414696f39e2b57072fab3dd4fa11e465be4ed.tar.gz postgresql-d3d414696f39e2b57072fab3dd4fa11e465be4ed.zip |
Allow bidirectional copy messages in streaming replication mode.
Fujii Masao. Review by Alvaro Herrera, Tom Lane, and myself.
Diffstat (limited to 'src/interfaces/libpq/fe-protocol2.c')
-rw-r--r-- | src/interfaces/libpq/fe-protocol2.c | 4 |
1 files changed, 4 insertions, 0 deletions
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( |