diff options
author | Jeff Davis <jdavis@postgresql.org> | 2024-07-31 16:42:19 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2024-07-31 16:42:19 -0700 |
commit | ca2eea3ac89a4ea16ab069cb681510d05de5285f (patch) | |
tree | 71dda9b27f646d43f463665142239f15b777df25 /src/backend/commands/createas.c | |
parent | f683d3a4ca6dc441a86ed90070f126c20ea46b45 (diff) | |
download | postgresql-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/backend/commands/createas.c')
-rw-r--r-- | src/backend/commands/createas.c | 5 |
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; |