Skip to content

Commit

Permalink
Drop unused params from ExecCreateImmv function (sraoss#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
reshke authored Oct 14, 2024
1 parent 85b11c3 commit b7be2aa
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion createas.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ create_immv_nodata(List *tlist, IntoClause *into)
*/
ObjectAddress
ExecCreateImmv(ParseState *pstate, CreateTableAsStmt *stmt,
ParamListInfo params, QueryEnvironment *queryEnv,
QueryCompletion *qc)
{
Query *query = castNode(Query, stmt->query);
Expand Down
2 changes: 1 addition & 1 deletion pg_ivm.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ create_immv(PG_FUNCTION_ARGS)
query = transformStmt(pstate, (Node *)ctas);
Assert(query->commandType == CMD_UTILITY && IsA(query->utilityStmt, CreateTableAsStmt));

ExecCreateImmv(pstate, (CreateTableAsStmt *) query->utilityStmt, NULL, NULL, &qc);
ExecCreateImmv(pstate, (CreateTableAsStmt *) query->utilityStmt, &qc);

PG_RETURN_INT64(qc.nprocessed);
}
Expand Down
1 change: 0 additions & 1 deletion pg_ivm.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ extern bool isImmv(Oid immv_oid);
/* createas.c */

extern ObjectAddress ExecCreateImmv(ParseState *pstate, CreateTableAsStmt *stmt,
ParamListInfo params, QueryEnvironment *queryEnv,
QueryCompletion *qc);
extern void CreateIvmTriggersOnBaseTables(Query *qry, Oid matviewOid);
extern void CreateIndexOnIMMV(Query *query, Relation matviewRel);
Expand Down

0 comments on commit b7be2aa

Please sign in to comment.