Skip to content

Commit 84a30b4

Browse files
committed
Make analyze do vacuum/analyze in one step.
1 parent 6d5cba7 commit 84a30b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/commands/vacuum.c

Lines changed: 5 additions & 5 deletions
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.156 2000/05/29 17:06:14 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.157 2000/05/29 17:07:57 momjian Exp $
1212
*
1313
1414
*-------------------------------------------------------------------------
@@ -244,12 +244,12 @@ vac_vacuum(NameData *VacRelP, bool analyze, List *anal_cols2)
244244

245245
/* vacuum each heap relation */
246246
for (cur = vrl; cur != (VRelList) NULL; cur = cur->vrl_next)
247+
{
247248
vacuum_rel(cur->vrl_relid, analyze);
248-
249-
/* analyze separately so locking is minimized */
250-
if (analyze)
251-
for (cur = vrl; cur != (VRelList) NULL; cur = cur->vrl_next)
249+
/* analyze separately so locking is minimized */
250+
if (analyze)
252251
analyze_rel(cur->vrl_relid, anal_cols2);
252+
}
253253
}
254254

255255
static VRelList

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy