* Returns if relation represented by oid and Form_pg_class entry
* is publishable.
*
- * Does same checks as the above, but does not need relation to be opened
- * and also does not throw errors.
+ * Does same checks as check_publication_add_relation() above, but does not
+ * need relation to be opened and also does not throw errors.
*
* XXX This also excludes all tables with relid < FirstNormalObjectId,
* ie all tables created during initdb. This mainly affects the preinstalled
relid >= FirstNormalObjectId;
}
+/*
+ * Another variant of is_publishable_class(), taking a Relation.
+ */
+bool
+is_publishable_relation(Relation rel)
+{
+ return is_publishable_class(RelationGetRelid(rel), rel->rd_rel);
+}
+
/*
* Filter out the partitions whose parent tables were also specified in
* the publication.
return result;
}
-/*
- * Another variant of this, taking a Relation.
- */
-bool
-is_publishable_relation(Relation rel)
-{
- return is_publishable_class(RelationGetRelid(rel), rel->rd_rel);
-}
-
/*
* Returns true if any schema is associated with the publication, false if no
* schema is associated with the publication.