Make analyze do vacuum/analyze in one step.

This commit is contained in:
Bruce Momjian 2000-05-29 17:07:57 +00:00
parent 6d5cba7c31
commit 84a30b4c41
1 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.156 2000/05/29 17:06:14 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.157 2000/05/29 17:07:57 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
@ -244,12 +244,12 @@ vac_vacuum(NameData *VacRelP, bool analyze, List *anal_cols2)
/* vacuum each heap relation */ /* vacuum each heap relation */
for (cur = vrl; cur != (VRelList) NULL; cur = cur->vrl_next) for (cur = vrl; cur != (VRelList) NULL; cur = cur->vrl_next)
{
vacuum_rel(cur->vrl_relid, analyze); vacuum_rel(cur->vrl_relid, analyze);
/* analyze separately so locking is minimized */
/* analyze separately so locking is minimized */ if (analyze)
if (analyze)
for (cur = vrl; cur != (VRelList) NULL; cur = cur->vrl_next)
analyze_rel(cur->vrl_relid, anal_cols2); analyze_rel(cur->vrl_relid, anal_cols2);
}
} }
static VRelList static VRelList