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
9196
9196
;
9197
9197
9198
9198
opt_drop_slot :
9199
- IDENT SLOT
9199
+ DROP SLOT
9200
9200
{
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 )
9204
9206
$$ = FALSE ;
9205
9207
else
9206
9208
ereport (ERROR,
Original file line number Diff line number Diff line change 179
179
or die " Timed out while waiting for apply to restart" ;
180
180
181
181
# 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 " );
183
183
184
184
$result =
185
185
$node_subscriber -> safe_psql(' postgres' , " SELECT count(*) FROM pg_subscription" );
You can’t perform that action at this time.
0 commit comments