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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy