Skip to content

Commit edbad25

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 <nagata@sraoss.co.jp>
1 parent 0cafc26 commit edbad25

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy