summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorTom Lane2012-08-27 16:45:51 +0000
committerTom Lane2012-08-27 16:45:51 +0000
commita6f43529ea6c3abd9207cea140ab231ac078746a (patch)
tree24d1e68b9cfa529cb4f67adc41cd063473793e9c /src/backend
parent81bcc8bc4ca6335f0b5b2029ebe84fbd788556fe (diff)
Fix DROP INDEX CONCURRENTLY IF EXISTS.
This threw ERROR, not the expected NOTICE, if the index didn't exist. The bug was actually visible in not-as-expected regression test output, so somebody wasn't paying too close attention in commit 8cb53654dbdb4c386369eb988062d0bbb6de725e. Per report from Brendan Byrd.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/parser/gram.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 7120b1e3187..44d0b3c6000 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -4854,7 +4854,7 @@ DropStmt: DROP drop_type IF_P EXISTS any_name_list opt_drop_behavior
{
DropStmt *n = makeNode(DropStmt);
n->removeType = OBJECT_INDEX;
- n->missing_ok = FALSE;
+ n->missing_ok = TRUE;
n->objects = $6;
n->arguments = NIL;
n->behavior = $7;