Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70b573b

Browse files
committed
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 <[email protected]>
1 parent 34a23a3 commit 70b573b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/pgoutput/pgoutput.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pgoutput_startup(LogicalDecodingContext *ctx, OutputPluginOptions *opt,
173173
&data->publication_names);
174174

175175
/* Check if we support requested protocol */
176-
if (data->protocol_version != LOGICALREP_PROTO_VERSION_NUM)
176+
if (data->protocol_version > LOGICALREP_PROTO_VERSION_NUM)
177177
ereport(ERROR,
178178
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
179179
errmsg("client sent proto_version=%d but we only support protocol %d or lower",

0 commit comments

Comments
 (0)