mirror of https://github.com/citusdata/citus.git
Cover postgres tables for CREATE TABLE commands when pg<13
parent
66d2884ee8
commit
3f2a52b7ce
|
@ -188,6 +188,12 @@ PostprocessCreateTableStmt(CreateStmt *createStatement, const char *queryString)
|
||||||
{
|
{
|
||||||
ErrorOutForFKeyBetweenPostgresAndCitusLocalTable(relationId);
|
ErrorOutForFKeyBetweenPostgresAndCitusLocalTable(relationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* invalidate foreign key cache if the table involved in any foreign key */
|
||||||
|
if ((TableReferenced(relationId) || TableReferencing(relationId)))
|
||||||
|
{
|
||||||
|
MarkInvalidateForeignKeyGraph();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (createStatement->inhRelations != NIL && createStatement->partbound != NULL)
|
if (createStatement->inhRelations != NIL && createStatement->partbound != NULL)
|
||||||
|
|
Loading…
Reference in New Issue