From b1ff33fd9bb82937f4719f264972e6a3c83cdb89 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 15 May 2017 13:59:58 -0400 Subject: [PATCH] Add assertion to quiet Coverity --- src/backend/commands/subscriptioncmds.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c index 21ef15fa0f..304ac842a5 100644 --- a/src/backend/commands/subscriptioncmds.c +++ b/src/backend/commands/subscriptioncmds.c @@ -69,6 +69,9 @@ parse_subscription_options(List *options, bool *connect, bool *enabled_given, bool create_slot_given = false; bool copy_data_given = false; + /* If connect is specified, the others also need to be. */ + Assert(!connect || (enabled && create_slot && copy_data)); + if (connect) *connect = true; if (enabled) -- 2.40.0