From: Peter Eisentraut Date: Tue, 15 Aug 2017 20:20:20 +0000 (-0400) Subject: Fix logical replication protocol comparison logic X-Git-Tag: REL_11_BETA1~1792 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70b573b2677eb5ef28515e824e5027e26ce21d77;p=postgresql 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 --- diff --git a/src/backend/replication/pgoutput/pgoutput.c b/src/backend/replication/pgoutput/pgoutput.c index 4a5628888a..370b74f232 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",