From: Peter Eisentraut Date: Tue, 15 Aug 2017 20:20:20 +0000 (-0400) Subject: Fix logical replication protocol comparison logic X-Git-Tag: REL_10_BETA4~43 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=edbad25877b10df07164345a8e6ae01236b6a26b;p=postgresql.git 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 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",