Content-Length: 291265 | pFad | http://github.com/postgrespro/postgres_cluster/commit/ac41769fd9dca9f4a6ee5fa859a56c08e8bb95fe

EF Oops, forgot to "git add" one last change · postgrespro/postgres_cluster@ac41769 · GitHub
Skip to content

Commit ac41769

Browse files
committed
Oops, forgot to "git add" one last change
1 parent 7636c0c commit ac41769

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/backend/commands/tablecmds.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3175,19 +3175,23 @@ ATPrepCmd(List **wqueue, Relation rel, AlterTableCmd *cmd,
31753175
case AT_SetLogged: /* SET LOGGED */
31763176
ATSimplePermissions(rel, ATT_TABLE);
31773177
tab->chgPersistence = ATPrepChangePersistence(rel, true);
3178-
tab->newrelpersistence = RELPERSISTENCE_PERMANENT;
3179-
/* force rewrite if necessary */
3178+
/* force rewrite if necessary; see comment in ATRewriteTables */
31803179
if (tab->chgPersistence)
3180+
{
31813181
tab->rewrite = true;
3182+
tab->newrelpersistence = RELPERSISTENCE_PERMANENT;
3183+
}
31823184
pass = AT_PASS_MISC;
31833185
break;
31843186
case AT_SetUnLogged: /* SET UNLOGGED */
31853187
ATSimplePermissions(rel, ATT_TABLE);
31863188
tab->chgPersistence = ATPrepChangePersistence(rel, false);
3187-
tab->newrelpersistence = RELPERSISTENCE_UNLOGGED;
3188-
/* force rewrite if necessary */
3189+
/* force rewrite if necessary; see comment in ATRewriteTables */
31893190
if (tab->chgPersistence)
3191+
{
31903192
tab->rewrite = true;
3193+
tab->newrelpersistence = RELPERSISTENCE_UNLOGGED;
3194+
}
31913195
pass = AT_PASS_MISC;
31923196
break;
31933197
case AT_AddOids: /* SET WITH OIDS */

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/ac41769fd9dca9f4a6ee5fa859a56c08e8bb95fe

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy