mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-04 02:06:48 +02:00
Make analyze do vacuum/analyze in one step.
This commit is contained in:
parent
6d5cba7c31
commit
84a30b4c41
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user