diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-06-28 12:11:18 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-06-28 12:11:18 +0900 |
commit | 79718c1c6c007c27e9c1b8e92bd96d17067606fa (patch) | |
tree | 73ecd2068ebd4227f0a645565b2a737dbb243aa4 /src | |
parent | 09a69f6e23369847cf11cd03c999a0342d47bbcc (diff) | |
download | postgresql-79718c1c6c007c27e9c1b8e92bd96d17067606fa.tar.gz postgresql-79718c1c6c007c27e9c1b8e92bd96d17067606fa.zip |
Fix variable initialization with ALTER SUBSCRIPTION DROP PUBLICATION
copy_data is not a supported option with this sub-command of ALTER
SUBSCRIPTION, which would not make a variable related to it initialized
after parsing the option set in DefElems. A refresh could then refer to
it.
Author: Ranier Vilela
Reviewed-by: Peter Smith
Discussion: https://postgr.es/m/CAEudQAp5P8nr=ze2Gv=BMj=DJFZnrvendZCZcC-fos3QiDe2sg@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/commands/subscriptioncmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c index e9a97db9a55..b862e59f1da 100644 --- a/src/backend/commands/subscriptioncmds.c +++ b/src/backend/commands/subscriptioncmds.c @@ -949,7 +949,7 @@ AlterSubscription(AlterSubscriptionStmt *stmt, bool isTopLevel) case ALTER_SUBSCRIPTION_DROP_PUBLICATION: { bool isadd = stmt->kind == ALTER_SUBSCRIPTION_ADD_PUBLICATION; - bool copy_data; + bool copy_data = false; bool refresh; List *publist; |