]> granicus.if.org Git - postgresql/blobdiff - src/backend/replication/walsender.c
Allow bidirectional copy messages in streaming replication mode.
[postgresql] / src / backend / replication / walsender.c
index d2b9e5c5f9aaa939d8f569f3232e523818ec4131..c8d2433158eec59113912d559876f628b7e9e74b 100644 (file)
@@ -287,8 +287,8 @@ WalSndHandshake(void)
                                                                        (errcode(ERRCODE_CANNOT_CONNECT_NOW),
                                                                         errmsg("standby connections not allowed because wal_level=minimal")));
 
-                                               /* Send a CopyOutResponse message, and start streaming */
-                                               pq_beginmessage(&buf, 'H');
+                                               /* Send a CopyBothResponse message, and start streaming */
+                                               pq_beginmessage(&buf, 'W');
                                                pq_sendbyte(&buf, 0);
                                                pq_sendint(&buf, 0, 2);
                                                pq_endmessage(&buf);