Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Davis2024-07-31 23:42:19 +0000
committerJeff Davis2024-07-31 23:42:19 +0000
commitca2eea3ac89a4ea16ab069cb681510d05de5285f (patch)
tree71dda9b27f646d43f463665142239f15b777df25 /src/backend/commands/createas.c
parentf683d3a4ca6dc441a86ed90070f126c20ea46b45 (diff)
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/backend/commands/createas.c')
-rw-r--r--src/backend/commands/createas.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/commands/createas.c b/src/backend/commands/createas.c
index 6fb92a312bb..36e192b79b2 100644
--- a/src/backend/commands/createas.c
+++ b/src/backend/commands/createas.c
@@ -346,11 +346,8 @@ ExecCreateTableAs(ParseState *pstate, CreateTableAsStmt *stmt,
*/
if (do_refresh)
{
- RefreshMatViewByOid(address.objectId, false, false,
+ RefreshMatViewByOid(address.objectId, true, false, false,
pstate->p_sourcetext, qc);
-
- if (qc)
- qc->commandTag = CMDTAG_SELECT;
}
return address;