Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit84a30b4

Browse files
committed
Make analyze do vacuum/analyze in one step.
1 parent6d5cba7 commit84a30b4

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
staticVRelList

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp