mirror of https://github.com/citusdata/citus.git
Cover postgres tables for DROP TABLE commands
parent
e91e745dbc
commit
66d2884ee8
|
@ -101,8 +101,8 @@ PreprocessDropTableStmt(Node *node, const char *queryString)
|
||||||
|
|
||||||
Oid relationId = RangeVarGetRelid(tableRangeVar, AccessShareLock, missingOK);
|
Oid relationId = RangeVarGetRelid(tableRangeVar, AccessShareLock, missingOK);
|
||||||
|
|
||||||
/* we're not interested in non-valid, non-distributed relations */
|
/* we're not interested in non-valid relations */
|
||||||
if (relationId == InvalidOid || !IsCitusTable(relationId))
|
if (relationId == InvalidOid)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -120,6 +120,12 @@ PreprocessDropTableStmt(Node *node, const char *queryString)
|
||||||
MarkInvalidateForeignKeyGraph();
|
MarkInvalidateForeignKeyGraph();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* we're not interested in non-distributed relations */
|
||||||
|
if (!IsCitusTable(relationId))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/* 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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue