Skip to content

Commit f683d3a

Browse files
committed
Remove unused ParamListInfo argument from ExecRefreshMatView.
Author: Yugo Nagata Discussion: https://postgr.es/m/20240726122630.70e889f63a4d7e26f8549de8@sraoss.co.jp
1 parent f5f30c2 commit f683d3a

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

src/backend/commands/createas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ ExecCreateTableAs(ParseState *pstate, CreateTableAsStmt *stmt,
347347
if (do_refresh)
348348
{
349349
RefreshMatViewByOid(address.objectId, false, false,
350-
pstate->p_sourcetext, NULL, qc);
350+
pstate->p_sourcetext, qc);
351351

352352
if (qc)
353353
qc->commandTag = CMDTAG_SELECT;

src/backend/commands/matview.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ SetMatViewPopulatedState(Relation relation, bool newstate)
119119
*/
120120
ObjectAddress
121121
ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
122-
ParamListInfo params, QueryCompletion *qc)
122+
QueryCompletion *qc)
123123
{
124124
Oid matviewOid;
125125
LOCKMODE lockmode;
@@ -136,7 +136,7 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
136136
NULL);
137137

138138
return RefreshMatViewByOid(matviewOid, stmt->skipData, stmt->concurrent,
139-
queryString, params, qc);
139+
queryString, qc);
140140
}
141141

142142
/*
@@ -160,8 +160,7 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
160160
*/
161161
ObjectAddress
162162
RefreshMatViewByOid(Oid matviewOid, bool skipData, bool concurrent,
163-
const char *queryString, ParamListInfo params,
164-
QueryCompletion *qc)
163+
const char *queryString, QueryCompletion *qc)
165164
{
166165
Relation matviewRel;
167166
RewriteRule *rule;

src/backend/tcop/utility.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,7 @@ ProcessUtilitySlow(ParseState *pstate,
16881688
PG_TRY(2);
16891689
{
16901690
address = ExecRefreshMatView((RefreshMatViewStmt *) parsetree,
1691-
queryString, params, qc);
1691+
queryString, qc);
16921692
}
16931693
PG_FINALLY(2);
16941694
{

src/include/commands/matview.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@
2424
extern void SetMatViewPopulatedState(Relation relation, bool newstate);
2525

2626
extern ObjectAddress ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
27-
ParamListInfo params, QueryCompletion *qc);
27+
QueryCompletion *qc);
2828
extern ObjectAddress RefreshMatViewByOid(Oid matviewOid, bool skipData, bool concurrent,
29-
const char *queryString, ParamListInfo params,
30-
QueryCompletion *qc);
29+
const char *queryString, QueryCompletion *qc);
3130

3231
extern DestReceiver *CreateTransientRelDestReceiver(Oid transientoid);
3332

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy