Fix variable initialization with ALTER SUBSCRIPTION DROP PUBLICATION

Michael Paquier <michael@paquier.xyz>

Commit: 79718c1c6c007c27e9c1b8e92bd96d17067606fa
Author: Michael Paquier <michael@paquier.xyz>
Date: 2021-06-28T03:11:18Z
Releases: 14.0
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

Files

PathChange+/−
src/backend/commands/subscriptioncmds.c modified +1 −1

Discussion