diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2014-08-25 15:32:06 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2014-08-25 15:32:06 -0400 |
commit | ac41769fd9dca9f4a6ee5fa859a56c08e8bb95fe (patch) | |
tree | b95faf81558fc42d7910dd2b46a7edfaa7d59b5d /src | |
parent | 7636c0c821f669e134a0f2fd1c6225bb3ec820d4 (diff) | |
download | postgresql-ac41769fd9dca9f4a6ee5fa859a56c08e8bb95fe.tar.gz postgresql-ac41769fd9dca9f4a6ee5fa859a56c08e8bb95fe.zip |
Oops, forgot to "git add" one last change
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/commands/tablecmds.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 56915c4fe38..3720a0fe563 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -3175,19 +3175,23 @@ ATPrepCmd(List **wqueue, Relation rel, AlterTableCmd *cmd, case AT_SetLogged: /* SET LOGGED */ ATSimplePermissions(rel, ATT_TABLE); tab->chgPersistence = ATPrepChangePersistence(rel, true); - tab->newrelpersistence = RELPERSISTENCE_PERMANENT; - /* force rewrite if necessary */ + /* force rewrite if necessary; see comment in ATRewriteTables */ if (tab->chgPersistence) + { tab->rewrite = true; + tab->newrelpersistence = RELPERSISTENCE_PERMANENT; + } pass = AT_PASS_MISC; break; case AT_SetUnLogged: /* SET UNLOGGED */ ATSimplePermissions(rel, ATT_TABLE); tab->chgPersistence = ATPrepChangePersistence(rel, false); - tab->newrelpersistence = RELPERSISTENCE_UNLOGGED; - /* force rewrite if necessary */ + /* force rewrite if necessary; see comment in ATRewriteTables */ if (tab->chgPersistence) + { tab->rewrite = true; + tab->newrelpersistence = RELPERSISTENCE_UNLOGGED; + } pass = AT_PASS_MISC; break; case AT_AddOids: /* SET WITH OIDS */ |