Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitac41769

Browse files
committed
Oops, forgot to "git add" one last change
1 parent7636c0c commitac41769

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
caseAT_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
caseAT_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
caseAT_AddOids:/* SET WITH OIDS */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp