mirror of https://github.com/postgres/postgres
Remove unused ParamListInfo argument from ExecRefreshMatView.
Author: Yugo Nagata Discussion: https://postgr.es/m/20240726122630.70e889f63a4d7e26f8549de8@sraoss.co.jp
This commit is contained in:
parent
f5f30c22ed
commit
f683d3a4ca
|
@ -347,7 +347,7 @@ ExecCreateTableAs(ParseState *pstate, CreateTableAsStmt *stmt,
|
||||||
if (do_refresh)
|
if (do_refresh)
|
||||||
{
|
{
|
||||||
RefreshMatViewByOid(address.objectId, false, false,
|
RefreshMatViewByOid(address.objectId, false, false,
|
||||||
pstate->p_sourcetext, NULL, qc);
|
pstate->p_sourcetext, qc);
|
||||||
|
|
||||||
if (qc)
|
if (qc)
|
||||||
qc->commandTag = CMDTAG_SELECT;
|
qc->commandTag = CMDTAG_SELECT;
|
||||||
|
|
|
@ -119,7 +119,7 @@ SetMatViewPopulatedState(Relation relation, bool newstate)
|
||||||
*/
|
*/
|
||||||
ObjectAddress
|
ObjectAddress
|
||||||
ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
|
ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
|
||||||
ParamListInfo params, QueryCompletion *qc)
|
QueryCompletion *qc)
|
||||||
{
|
{
|
||||||
Oid matviewOid;
|
Oid matviewOid;
|
||||||
LOCKMODE lockmode;
|
LOCKMODE lockmode;
|
||||||
|
@ -136,7 +136,7 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
return RefreshMatViewByOid(matviewOid, stmt->skipData, stmt->concurrent,
|
return RefreshMatViewByOid(matviewOid, stmt->skipData, stmt->concurrent,
|
||||||
queryString, params, qc);
|
queryString, qc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -160,8 +160,7 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
|
||||||
*/
|
*/
|
||||||
ObjectAddress
|
ObjectAddress
|
||||||
RefreshMatViewByOid(Oid matviewOid, bool skipData, bool concurrent,
|
RefreshMatViewByOid(Oid matviewOid, bool skipData, bool concurrent,
|
||||||
const char *queryString, ParamListInfo params,
|
const char *queryString, QueryCompletion *qc)
|
||||||
QueryCompletion *qc)
|
|
||||||
{
|
{
|
||||||
Relation matviewRel;
|
Relation matviewRel;
|
||||||
RewriteRule *rule;
|
RewriteRule *rule;
|
||||||
|
|
|
@ -1688,7 +1688,7 @@ ProcessUtilitySlow(ParseState *pstate,
|
||||||
PG_TRY(2);
|
PG_TRY(2);
|
||||||
{
|
{
|
||||||
address = ExecRefreshMatView((RefreshMatViewStmt *) parsetree,
|
address = ExecRefreshMatView((RefreshMatViewStmt *) parsetree,
|
||||||
queryString, params, qc);
|
queryString, qc);
|
||||||
}
|
}
|
||||||
PG_FINALLY(2);
|
PG_FINALLY(2);
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,10 +24,9 @@
|
||||||
extern void SetMatViewPopulatedState(Relation relation, bool newstate);
|
extern void SetMatViewPopulatedState(Relation relation, bool newstate);
|
||||||
|
|
||||||
extern ObjectAddress ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
|
extern ObjectAddress ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
|
||||||
ParamListInfo params, QueryCompletion *qc);
|
QueryCompletion *qc);
|
||||||
extern ObjectAddress RefreshMatViewByOid(Oid matviewOid, bool skipData, bool concurrent,
|
extern ObjectAddress RefreshMatViewByOid(Oid matviewOid, bool skipData, bool concurrent,
|
||||||
const char *queryString, ParamListInfo params,
|
const char *queryString, QueryCompletion *qc);
|
||||||
QueryCompletion *qc);
|
|
||||||
|
|
||||||
extern DestReceiver *CreateTransientRelDestReceiver(Oid transientoid);
|
extern DestReceiver *CreateTransientRelDestReceiver(Oid transientoid);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue