aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/matview.h
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2024-07-31 16:42:19 -0700
committerJeff Davis <jdavis@postgresql.org>2024-07-31 16:42:19 -0700
commitca2eea3ac89a4ea16ab069cb681510d05de5285f (patch)
tree71dda9b27f646d43f463665142239f15b777df25 /src/include/commands/matview.h
parentf683d3a4ca6dc441a86ed90070f126c20ea46b45 (diff)
downloadpostgresql-ca2eea3ac89a4ea16ab069cb681510d05de5285f.tar.gz
postgresql-ca2eea3ac89a4ea16ab069cb681510d05de5285f.zip
Add is_create parameter to RefreshMatviewByOid().
RefreshMatviewByOid is used for both REFRESH and CREATE MATERIALIZED VIEW. This flag is currently just used for handling internal error messages, but also aimed to improve code-readability. Author: Yugo Nagata Discussion: https://postgr.es/m/20240726122630.70e889f63a4d7e26f8549de8@sraoss.co.jp
Diffstat (limited to 'src/include/commands/matview.h')
-rw-r--r--src/include/commands/matview.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/commands/matview.h b/src/include/commands/matview.h
index 7916df30393..c8811e8fc71 100644
--- a/src/include/commands/matview.h
+++ b/src/include/commands/matview.h
@@ -25,8 +25,9 @@ extern void SetMatViewPopulatedState(Relation relation, bool newstate);
extern ObjectAddress ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
QueryCompletion *qc);
-extern ObjectAddress RefreshMatViewByOid(Oid matviewOid, bool skipData, bool concurrent,
- const char *queryString, QueryCompletion *qc);
+extern ObjectAddress RefreshMatViewByOid(Oid matviewOid, bool is_create, bool skipData,
+ bool concurrent, const char *queryString,
+ QueryCompletion *qc);
extern DestReceiver *CreateTransientRelDestReceiver(Oid transientoid);