add missing object_classes and includes to dependency.c
authorTomas Vondra <[email protected]>
Mon, 7 Nov 2016 18:03:15 +0000 (19:03 +0100)
committerTomas Vondra <[email protected]>
Mon, 7 Nov 2016 18:03:15 +0000 (19:03 +0100)
OCLASS_PGXC_NODE/OCLASS_PGXC_GROUP were missing in object_classes[]

src/backend/catalog/dependency.c

index a01cdef367eae8084af8700d5eebcdb2695bbe02..8fb46e8eb1d0fac7e8b1d73066813b206d038bf1 100644 (file)
@@ -62,6 +62,8 @@
 #include "catalog/pg_user_mapping.h"
 #ifdef PGXC
 #include "catalog/pgxc_class.h"
+#include "catalog/pgxc_node.h"
+#include "catalog/pgxc_group.h"
 #include "pgxc/execRemote.h"
 #include "pgxc/pgxc.h"
 #include "commands/sequence.h"
@@ -174,13 +176,14 @@ static const Oid object_classes[] = {
        ExtensionRelationId,            /* OCLASS_EXTENSION */
 #ifdef PGXC
        PgxcClassRelationId,            /* OCLASS_PGXCCLASS */
+       PgxcNodeRelationId,                     /* OCLASS_PGXC_NODE */
+       PgxcGroupRelationId,            /* OCLASS_PGXC_GROUP */
 #endif
        EventTriggerRelationId,         /* OCLASS_EVENT_TRIGGER */
        PolicyRelationId,                       /* OCLASS_POLICY */
        TransformRelationId                     /* OCLASS_TRANSFORM */
 };
 
-
 static void findDependentObjects(const ObjectAddress *object,
                                         int flags,
                                         ObjectAddressStack *stack,