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

Commitebffbb4

Browse files
author
Hiroshi Inoue
committed
ifdef out reindex stuff in VACUUM for safety.
1 parenteeaf3fc commitebffbb4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎src/backend/commands/vacuum.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.186 2001/01/24 19:42:53 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.187 2001/03/14 08:40:57 inoue Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -458,13 +458,19 @@ vacuum_rel(Oid relid)
458458
vacrelstats->hasindex= true;
459459
else
460460
vacrelstats->hasindex= false;
461+
#ifdefNOT_USED
462+
/*
463+
*reindex in VACUUM is dangerous under WAL.
464+
*ifdef out until it becomes safe.
465+
*/
461466
if (reindex)
462467
{
463468
for (i=0;i<nindices;i++)
464469
index_close(Irel[i]);
465470
Irel= (Relation*)NULL;
466471
activate_indexes_of_a_table(relid, false);
467472
}
473+
#endif/* NOT_USED */
468474

469475
/* Clean/scan index relation(s) */
470476
if (Irel!= (Relation*)NULL)
@@ -512,8 +518,10 @@ vacuum_rel(Oid relid)
512518
i);
513519
}
514520
}
521+
#ifdefNOT_USED
515522
if (reindex)
516523
activate_indexes_of_a_table(relid, true);
524+
#endif/* NOT_USED */
517525

518526
/* all done with this class, but hold lock until commit */
519527
heap_close(onerel,NoLock);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp