fixup! Consider fkey graph invalidations due to CREATE TABLE cmds too

cover-local-tables-fkey-graph
Onur Tirtir 2021-01-05 19:50:20 +03:00
parent f3f650c0b7
commit 67f677c921
1 changed files with 7 additions and 7 deletions

View File

@ -536,13 +536,6 @@ multi_ProcessUtility(PlannedStmt *pstmt,
* Post process for ddl statements * Post process for ddl statements
*/ */
if (IsA(parsetree, CreateStmt))
{
CreateStmt *createStatement = (CreateStmt *) parsetree;
PostprocessCreateTableStmt(createStatement, queryString);
}
if (EnableDDLPropagation) if (EnableDDLPropagation)
{ {
if (ops && ops->postprocess) if (ops && ops->postprocess)
@ -566,6 +559,13 @@ multi_ProcessUtility(PlannedStmt *pstmt,
} }
} }
if (IsA(parsetree, CreateStmt))
{
CreateStmt *createStatement = (CreateStmt *) parsetree;
PostprocessCreateTableStmt(createStatement, queryString);
}
/* /*
* We only process ALTER TABLE ... ATTACH PARTITION commands in the function below * We only process ALTER TABLE ... ATTACH PARTITION commands in the function below
* and distribute the partition if necessary. * and distribute the partition if necessary.