File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -9196,11 +9196,13 @@ DropSubscriptionStmt: DROP SUBSCRIPTION name opt_drop_slot
91969196 ;
91979197
91989198opt_drop_slot :
9199- IDENT SLOT
9199+ DROP SLOT
92009200 {
9201- if (strcmp($1 , " drop" ) == 0 )
9202- $$ = TRUE ;
9203- else if (strcmp($1 , " nodrop" ) == 0 )
9201+ $$ = TRUE ;
9202+ }
9203+ | IDENT SLOT
9204+ {
9205+ if (strcmp($1 , " nodrop" ) == 0 )
92049206 $$ = FALSE ;
92059207 else
92069208 ereport (ERROR,
Original file line number Diff line number Diff line change 179179 or die " Timed out while waiting for apply to restart" ;
180180
181181# check all the cleanup
182- $node_subscriber -> safe_psql(' postgres' , " DROP SUBSCRIPTION tap_sub_renamed" );
182+ $node_subscriber -> safe_psql(' postgres' , " DROP SUBSCRIPTION tap_sub_renamed DROP SLOT " );
183183
184184$result =
185185 $node_subscriber -> safe_psql(' postgres' , " SELECT count(*) FROM pg_subscription" );
You can’t perform that action at this time.
0 commit comments