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

Commit7a203a3

Browse files
committed
Add recreate index notice to vacuum error.
1 parentfb9448d commit7a203a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/commands/vacuum.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.123 1999/11/07 23:08:02 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.124 1999/11/14 17:27:01 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1976,7 +1976,7 @@ vc_scanoneind(Relation indrel, int num_tuples)
19761976
ru1.ru_utime.tv_sec-ru0.ru_utime.tv_sec);
19771977

19781978
if (nitups!=num_tuples)
1979-
elog(NOTICE,"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u)",
1979+
elog(NOTICE,"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u).\nTry recreating the index.",
19801980
RelationGetRelationName(indrel),nitups,num_tuples);
19811981

19821982
}/* vc_scanoneind */
@@ -2057,7 +2057,7 @@ vc_vaconeind(VPageList vpl, Relation indrel, int num_tuples, int keep_tuples)
20572057
ru1.ru_utime.tv_sec-ru0.ru_utime.tv_sec);
20582058

20592059
if (num_index_tuples!=num_tuples+keep_tuples)
2060-
elog(NOTICE,"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u)",
2060+
elog(NOTICE,"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u).\nTry recreating the index.",
20612061
RelationGetRelationName(indrel),num_index_tuples,num_tuples);
20622062

20632063
}/* vc_vaconeind */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp