mirror of https://github.com/citusdata/citus.git
Rename function
parent
30d0a65f40
commit
ae0b92233d
|
@ -1098,13 +1098,12 @@ PreprocessAlterTableSchemaStmt(Node *node, const char *queryString,
|
|||
|
||||
|
||||
/*
|
||||
* WorkerProcessAlterTableStmt checks and processes the alter table statement to be
|
||||
* worked on the distributed table of the worker node. Currently, it only processes
|
||||
* SkipForeignKeyValidationIfConstraintIsFkey checks and processes the alter table
|
||||
* statement to be worked on the distributed table. Currently, it only processes
|
||||
* ALTER TABLE ... ADD FOREIGN KEY command to skip the validation step.
|
||||
*/
|
||||
Node *
|
||||
WorkerProcessAlterTableStmt(AlterTableStmt *alterTableStatement,
|
||||
const char *alterTableCommand)
|
||||
SkipForeignKeyValidationIfConstraintIsFkey(AlterTableStmt *alterTableStatement)
|
||||
{
|
||||
/* first check whether a distributed relation is affected */
|
||||
if (alterTableStatement->relation == NULL)
|
||||
|
|
|
@ -416,7 +416,7 @@ multi_ProcessUtility(PlannedStmt *pstmt,
|
|||
* Note validation is done on the shard level when DDL propagation
|
||||
* is enabled. The following eagerly executes some tasks on workers.
|
||||
*/
|
||||
parsetree = WorkerProcessAlterTableStmt(alterTableStmt, queryString);
|
||||
parsetree = SkipForeignKeyValidationIfConstraintIsFkey(alterTableStmt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -368,8 +368,7 @@ extern List * PreprocessAlterTableMoveAllStmt(Node *node, const char *queryStrin
|
|||
ProcessUtilityContext processUtilityContext);
|
||||
extern List * PreprocessAlterTableSchemaStmt(Node *node, const char *queryString,
|
||||
ProcessUtilityContext processUtilityContext);
|
||||
extern Node * WorkerProcessAlterTableStmt(AlterTableStmt *alterTableStatement,
|
||||
const char *alterTableCommand);
|
||||
extern Node * SkipForeignKeyValidationIfConstraintIsFkey(AlterTableStmt *alterTableStmt);
|
||||
extern bool IsAlterTableRenameStmt(RenameStmt *renameStmt);
|
||||
extern void ErrorIfAlterDropsPartitionColumn(AlterTableStmt *alterTableStatement);
|
||||
extern void PostprocessAlterTableStmt(AlterTableStmt *pStmt);
|
||||
|
|
Loading…
Reference in New Issue