*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.186 2001/01/24 19:42:53 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.187 2001/03/14 08:40:57 inoue Exp $
*
*-------------------------------------------------------------------------
*/
vacrelstats->hasindex = true;
else
vacrelstats->hasindex = false;
+#ifdef NOT_USED
+ /*
+ * reindex in VACUUM is dangerous under WAL.
+ * ifdef out until it becomes safe.
+ */
if (reindex)
{
for (i = 0; i < nindices; i++)
Irel = (Relation *) NULL;
activate_indexes_of_a_table(relid, false);
}
+#endif /* NOT_USED */
/* Clean/scan index relation(s) */
if (Irel != (Relation *) NULL)
i);
}
}
+#ifdef NOT_USED
if (reindex)
activate_indexes_of_a_table(relid, true);
+#endif /* NOT_USED */
/* all done with this class, but hold lock until commit */
heap_close(onerel, NoLock);