Fix variable initialization with ALTER SUBSCRIPTION DROP PUBLICATION
authorMichael Paquier <michael@paquier.xyz>
Mon, 28 Jun 2021 03:11:18 +0000 (12:11 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 28 Jun 2021 03:11:18 +0000 (12:11 +0900)
commit79718c1c6c007c27e9c1b8e92bd96d17067606fa
tree73ecd2068ebd4227f0a645565b2a737dbb243aa4
parent09a69f6e23369847cf11cd03c999a0342d47bbcc
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
src/backend/commands/subscriptioncmds.c