Remove unused ParamListInfo argument from ExecRefreshMatView.

Author: Yugo Nagata
Discussion: https://postgr.es/m/20240726122630.70e889f63a4d7e26f8549de8@sraoss.co.jp
This commit is contained in:
Jeff Davis 2024-07-31 16:15:26 -07:00
parent f5f30c22ed
commit f683d3a4ca
4 changed files with 7 additions and 9 deletions

View File

@ -347,7 +347,7 @@ ExecCreateTableAs(ParseState *pstate, CreateTableAsStmt *stmt,
if (do_refresh)
{
RefreshMatViewByOid(address.objectId, false, false,
pstate->p_sourcetext, NULL, qc);
pstate->p_sourcetext, qc);
if (qc)
qc->commandTag = CMDTAG_SELECT;

View File

@ -119,7 +119,7 @@ SetMatViewPopulatedState(Relation relation, bool newstate)
*/
ObjectAddress
ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
ParamListInfo params, QueryCompletion *qc)
QueryCompletion *qc)
{
Oid matviewOid;
LOCKMODE lockmode;
@ -136,7 +136,7 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
NULL);
return RefreshMatViewByOid(matviewOid, stmt->skipData, stmt->concurrent,
queryString, params, qc);
queryString, qc);
}
/*
@ -160,8 +160,7 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
*/
ObjectAddress
RefreshMatViewByOid(Oid matviewOid, bool skipData, bool concurrent,
const char *queryString, ParamListInfo params,
QueryCompletion *qc)
const char *queryString, QueryCompletion *qc)
{
Relation matviewRel;
RewriteRule *rule;

View File

@ -1688,7 +1688,7 @@ ProcessUtilitySlow(ParseState *pstate,
PG_TRY(2);
{
address = ExecRefreshMatView((RefreshMatViewStmt *) parsetree,
queryString, params, qc);
queryString, qc);
}
PG_FINALLY(2);
{

View File

@ -24,10 +24,9 @@
extern void SetMatViewPopulatedState(Relation relation, bool newstate);
extern ObjectAddress ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
ParamListInfo params, QueryCompletion *qc);
QueryCompletion *qc);
extern ObjectAddress RefreshMatViewByOid(Oid matviewOid, bool skipData, bool concurrent,
const char *queryString, ParamListInfo params,
QueryCompletion *qc);
const char *queryString, QueryCompletion *qc);
extern DestReceiver *CreateTransientRelDestReceiver(Oid transientoid);