summaryrefslogtreecommitdiff
path: root/src/backend/replication
diff options
context:
space:
mode:
authorPeter Eisentraut2017-08-15 20:20:20 +0000
committerPeter Eisentraut2017-08-15 20:21:19 +0000
commit70b573b2677eb5ef28515e824e5027e26ce21d77 (patch)
tree05fe93beb273e7ac51c3c7c46d96cc38100af3ee /src/backend/replication
parent34a23a34269519e19b5da3ea4e29e4e0abadfee3 (diff)
Fix logical replication protocol comparison logic
Since we currently only have one protocol, this doesn't make much of a difference other than the error message. Author: Yugo Nagata <nagata@sraoss.co.jp>
Diffstat (limited to 'src/backend/replication')
-rw-r--r--src/backend/replication/pgoutput/pgoutput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/pgoutput/pgoutput.c b/src/backend/replication/pgoutput/pgoutput.c
index 4a5628888a2..370b74f2327 100644
--- a/src/backend/replication/pgoutput/pgoutput.c
+++ b/src/backend/replication/pgoutput/pgoutput.c
@@ -173,7 +173,7 @@ pgoutput_startup(LogicalDecodingContext *ctx, OutputPluginOptions *opt,
&data->publication_names);
/* Check if we support requested protocol */
- if (data->protocol_version != LOGICALREP_PROTO_VERSION_NUM)
+ if (data->protocol_version > LOGICALREP_PROTO_VERSION_NUM)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("client sent proto_version=%d but we only support protocol %d or lower",