Sait Talha Nisanci 2021-01-20 12:17:52 +03:00
parent bc747206d5
commit d5c14f3b0b
2 changed files with 4 additions and 0 deletions

View File

@ -719,6 +719,7 @@ CreateRefreshView(CimvCreate *cimvCreate)
query->targetList = (List *) PartializeAggs((Node *) query->targetList, &inverse);
AddCountAgg(query, true);
/* TODO:: we probably don't need this part until parse_analyze */
StringInfoData querybuf;
initStringInfo(&querybuf);

View File

@ -461,6 +461,9 @@ multi_ProcessUtility(PlannedStmt *pstmt,
bool continueProcessing = true;
if (IsA(parsetree, CreateTableAsStmt))
{
StringInfo buf = makeStringInfo();
pg_get_query_def(parsetree, buf);
elog(WARNING, "%s", buf->data);
continueProcessing = !ProcessCreateMaterializedViewStmt((const
CreateTableAsStmt *)
parsetree, queryString,