From b7be2aa7ff556dbc1ab3f867c7c030b55f4bc771 Mon Sep 17 00:00:00 2001 From: reshke Date: Mon, 14 Oct 2024 17:45:52 +0500 Subject: [PATCH] Drop unused params from ExecCreateImmv function (#102) --- createas.c | 1 - pg_ivm.c | 2 +- pg_ivm.h | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/createas.c b/createas.c index 6218d16..5b1b877 100644 --- a/createas.c +++ b/createas.c @@ -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); diff --git a/pg_ivm.c b/pg_ivm.c index e2afc6f..c9ae2a5 100644 --- a/pg_ivm.c +++ b/pg_ivm.c @@ -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); } diff --git a/pg_ivm.h b/pg_ivm.h index 2c76f9b..3ee0503 100644 --- a/pg_ivm.h +++ b/pg_ivm.h @@ -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);