Always create unlogged IMMVs
This commit is contained in:
parent
437b2d22d7
commit
69c5254a76
1 changed files with 3 additions and 0 deletions
|
|
@ -241,6 +241,9 @@ ExecCreateImmv(ParseState *pstate, CreateTableAsStmt *stmt,
|
||||||
bool do_refresh = false;
|
bool do_refresh = false;
|
||||||
ObjectAddress address;
|
ObjectAddress address;
|
||||||
|
|
||||||
|
/* For mdpt purposes, we always create unlogged IMMVs */
|
||||||
|
into->rel->relpersistence = RELPERSISTENCE_UNLOGGED;
|
||||||
|
|
||||||
/* Check if the relation exists or not */
|
/* Check if the relation exists or not */
|
||||||
if (CreateTableAsRelExists(stmt))
|
if (CreateTableAsRelExists(stmt))
|
||||||
return InvalidObjectAddress;
|
return InvalidObjectAddress;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue