Skip for table types other than citus local tables

talha_tes1
Ahmet Gedemenli 2021-10-26 17:36:07 +03:00
parent 4f557a43b6
commit 271220ef6e
1 changed files with 6 additions and 1 deletions

View File

@ -1318,7 +1318,7 @@ ConvertPostgresLocalTablesToCitusLocalTables(AlterTableStmt *alterTableStatement
*/ */
continue; continue;
} }
else if (IsCitusTable(relationId)) else if (IsCitusTableType(relationId, CITUS_LOCAL_TABLE))
{ {
CitusTableCacheEntry *entry = GetCitusTableCacheEntry(relationId); CitusTableCacheEntry *entry = GetCitusTableCacheEntry(relationId);
if (!entry->autoConverted || autoConverted) if (!entry->autoConverted || autoConverted)
@ -1339,6 +1339,11 @@ ConvertPostgresLocalTablesToCitusLocalTables(AlterTableStmt *alterTableStatement
continue; continue;
} }
} }
else if (IsCitusTable(relationId))
{
/* we can directly skip for table types other than citus local tables */
continue;
}
/* /*
* The only reason behind using a try/catch block here is giving a proper * The only reason behind using a try/catch block here is giving a proper