bdr: Don't forbid CREATE INDEX CONCURRENTLY anymore.
authorAndres Freund <andres@anarazel.de>
Tue, 1 Apr 2014 22:39:06 +0000 (00:39 +0200)
committerAndres Freund <andres@anarazel.de>
Thu, 3 Jul 2014 15:55:23 +0000 (17:55 +0200)
contrib/bdr/bdr_commandfilter.c

index 203cc4280854ed7b947d8f7678b2954ac4550bd9..1b823c2c3dad528801e49fbbb7e306546c0947da 100644 (file)
@@ -81,7 +81,6 @@ bdr_commandfilter(Node *parsetree,
    DropStmt   *dropStatement;
    RenameStmt *renameStatement;
    AlterTableStmt *alterTableStatement;
-   IndexStmt  *indexStmt;
 
    ereport(DEBUG4,
         (errmsg_internal("bdr_commandfilter ProcessUtility_hook invoked")));
@@ -97,15 +96,6 @@ bdr_commandfilter(Node *parsetree,
                                   false);
            break;
 
-       case T_IndexStmt:
-           indexStmt = (IndexStmt *) parsetree;
-           if (indexStmt->concurrent)
-               error_on_persistent_rv(indexStmt->relation,
-                                      "CREATE INDEX CONCURRENTLY",
-                                      AccessExclusiveLock, severity,
-                                      false);
-           break;
-
            /*
             * XXX allow ALTER TABLE statements when stabilized; still forbid *
             * ALTER TABLE RENAME as well as ALTER TYPE (which seems to be