Cover postgres tables for CREATE TABLE commands when pg<13

pull/4453/head
Onur Tirtir 2020-12-22 11:32:27 +03:00
parent 66d2884ee8
commit 3f2a52b7ce
1 changed files with 6 additions and 0 deletions

View File

@ -188,6 +188,12 @@ PostprocessCreateTableStmt(CreateStmt *createStatement, const char *queryString)
{
ErrorOutForFKeyBetweenPostgresAndCitusLocalTable(relationId);
}
/* invalidate foreign key cache if the table involved in any foreign key */
if ((TableReferenced(relationId) || TableReferencing(relationId)))
{
MarkInvalidateForeignKeyGraph();
}
#endif
if (createStatement->inhRelations != NIL && createStatement->partbound != NULL)