@@ -115,8 +115,8 @@ check_publication_add_schema(Oid schemaid)
115
115
* Returns if relation represented by oid and Form_pg_class entry
116
116
* is publishable.
117
117
*
118
- * Does same checks as the above, but does not need relation to be opened
119
- * and also does not throw errors.
118
+ * Does same checks as check_publication_add_relation() above, but does not
119
+ * need relation to be opened and also does not throw errors.
120
120
*
121
121
* XXX This also excludes all tables with relid < FirstNormalObjectId,
122
122
* ie all tables created during initdb. This mainly affects the preinstalled
@@ -140,6 +140,15 @@ is_publishable_class(Oid relid, Form_pg_class reltuple)
140
140
relid >= FirstNormalObjectId ;
141
141
}
142
142
143
+ /*
144
+ * Another variant of is_publishable_class(), taking a Relation.
145
+ */
146
+ bool
147
+ is_publishable_relation (Relation rel )
148
+ {
149
+ return is_publishable_class (RelationGetRelid (rel ), rel -> rd_rel );
150
+ }
151
+
143
152
/*
144
153
* Filter out the partitions whose parent tables were also specified in
145
154
* the publication.
@@ -179,15 +188,6 @@ filter_partitions(List *relids)
179
188
return result ;
180
189
}
181
190
182
- /*
183
- * Another variant of this, taking a Relation.
184
- */
185
- bool
186
- is_publishable_relation (Relation rel )
187
- {
188
- return is_publishable_class (RelationGetRelid (rel ), rel -> rd_rel );
189
- }
190
-
191
191
/*
192
192
* Returns true if any schema is associated with the publication, false if no
193
193
* schema is associated with the publication.
0 commit comments