Skip to content

Commit 7a203a3

Browse files
committed
Add recreate index notice to vacuum error.
1 parent fb9448d commit 7a203a3

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)
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