Content-Length: 256796 | pFad | http://github.com/postgrespro/postgres/commit/79718c1c6c007c27e9c1b8e92bd96d17067606fa

B4 Fix variable initialization with ALTER SUBSCRIPTION DROP PUBLICATION · postgrespro/postgres@79718c1 · GitHub
Skip to content

Commit 79718c1

Browse files
committed
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
1 parent 09a69f6 commit 79718c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/subscriptioncmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ AlterSubscription(AlterSubscriptionStmt *stmt, bool isTopLevel)
949949
case ALTER_SUBSCRIPTION_DROP_PUBLICATION:
950950
{
951951
bool isadd = stmt->kind == ALTER_SUBSCRIPTION_ADD_PUBLICATION;
952-
bool copy_data;
952+
bool copy_data = false;
953953
bool refresh;
954954
List *publist;
955955

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/79718c1c6c007c27e9c1b8e92bd96d17067606fa

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy