]> granicus.if.org Git - postgresql/commitdiff
ifdef out reindex stuff in VACUUM for safety.
authorHiroshi Inoue <inoue@tpf.co.jp>
Wed, 14 Mar 2001 08:40:57 +0000 (08:40 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Wed, 14 Mar 2001 08:40:57 +0000 (08:40 +0000)
src/backend/commands/vacuum.c

index e4d2fcb0ad84834fcd57c90ad195f36b7deff7a7..3606d05f74123fa80a2bd523ef766b55e88e7222 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * 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 $
  *
  *-------------------------------------------------------------------------
  */
@@ -458,6 +458,11 @@ vacuum_rel(Oid relid)
                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++)
@@ -465,6 +470,7 @@ vacuum_rel(Oid relid)
                Irel = (Relation *) NULL;
                activate_indexes_of_a_table(relid, false);
        }
+#endif /* NOT_USED */
 
        /* Clean/scan index relation(s) */
        if (Irel != (Relation *) NULL)
@@ -512,8 +518,10 @@ vacuum_rel(Oid relid)
                                         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);