aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-08-15 16:20:20 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-08-15 16:21:19 -0400
commit70b573b2677eb5ef28515e824e5027e26ce21d77 (patch)
tree05fe93beb273e7ac51c3c7c46d96cc38100af3ee
parent34a23a34269519e19b5da3ea4e29e4e0abadfee3 (diff)
downloadpostgresql-70b573b2677eb5ef28515e824e5027e26ce21d77.tar.gz
postgresql-70b573b2677eb5ef28515e824e5027e26ce21d77.zip
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>
-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",