Don't invalidate foreign key graph for CREATE TABLE commands

cover-local-tables-fkey-graph
Onur Tirtir 2021-01-06 14:38:34 +03:00
parent 0e85d8806c
commit fffa011303
1 changed files with 0 additions and 6 deletions

View File

@ -200,12 +200,6 @@ 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)))
{
InvalidateForeignKeyGraph();
}
#endif #endif
if (createStatement->inhRelations != NIL && createStatement->partbound != NULL) if (createStatement->inhRelations != NIL && createStatement->partbound != NULL)