obj_access
Onder Kalaci 2022-08-25 11:19:57 +02:00
parent c51f852ecb
commit 712a38a2f5
1 changed files with 7 additions and 0 deletions

View File

@ -162,6 +162,13 @@ PreprocessDropTableStmt(Node *node, const char *queryString,
LockColocationId(cacheEntry->colocationId, ShareLock); LockColocationId(cacheEntry->colocationId, ShareLock);
} }
/*
* Invalidate foreign key cache if the table involved in any foreign key. We'd normally */
if ((TableReferenced(relationId) || TableReferencing(relationId)))
{
MarkInvalidateForeignKeyGraph();
}
/* we're only interested in partitioned and mx tables */ /* we're only interested in partitioned and mx tables */
if (!ShouldSyncTableMetadata(relationId) || !PartitionedTable(relationId)) if (!ShouldSyncTableMetadata(relationId) || !PartitionedTable(relationId))
{ {