Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3473027

Browse files
committed
Fix parsing of DROP SUBSCRIPTION ... DROP SLOT
It didn't actually parse before.Reported-by: Masahiko Sawada <sawada.mshk@gmail.com>
1 parent1309375 commit3473027

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎src/backend/parser/gram.y

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9196,11 +9196,13 @@ DropSubscriptionStmt: DROP SUBSCRIPTION name opt_drop_slot
91969196
;
91979197

91989198
opt_drop_slot:
9199-
IDENTSLOT
9199+
DROPSLOT
92009200
{
9201-
if (strcmp($1,"drop") ==0)
9202-
$$ =TRUE;
9203-
elseif (strcmp($1,"nodrop") ==0)
9201+
$$ =TRUE;
9202+
}
9203+
|IDENTSLOT
9204+
{
9205+
if (strcmp($1,"nodrop") ==0)
92049206
$$ =FALSE;
92059207
else
92069208
ereport(ERROR,

‎src/test/subscription/t/001_rep_changes.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
ordie"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");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp