bdr: Also accept ProcessedConstraints in the commandfilter.
authorAndres Freund <[email protected]>
Wed, 30 Apr 2014 16:37:14 +0000 (18:37 +0200)
committerAndres Freund <[email protected]>
Thu, 3 Jul 2014 15:55:30 +0000 (17:55 +0200)
That makes CREATE TABLE ..( ... REFERENCES ...) work.

contrib/bdr/bdr_commandfilter.c

index 30b00837489c08bc1abb1eac497837a8bfd793f3..54c981c659b2f8dbfa69a670380dfeaf21a4d606 100644 (file)
@@ -162,6 +162,7 @@ bdr_commandfilter(Node *parsetree,
                        break;
 
                    case AT_AddConstraint:
+                   case AT_ProcessedConstraint:
                        if (IsA(stmt->def, Constraint))
                        {
                            con = (Constraint *) stmt->def;