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

Commit4901ff7

Browse files
committed
Mention index name when reporting corruption.
1 parent1f64926 commit4901ff7

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

‎src/backend/access/nbtree/nbtpage.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.33 1999/11/14 19:01:04 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.34 1999/12/01 00:29:53 momjian Exp $
1212
*
1313
*NOTES
1414
* Postgres btree pages look like ordinary relation pages.The opaque
@@ -502,7 +502,8 @@ _bt_getstackbuf(Relation rel, BTStack stack, int access)
502502
{
503503
blkno=opaque->btpo_next;
504504
if (P_RIGHTMOST(opaque))
505-
elog(FATAL,"my bits moved right off the end of the world!\n\tTry recreating the index.");
505+
elog(FATAL,"my bits moved right off the end of the world!\
506+
\n\tRecreate index %s.",RelationGetRelationName(rel));
506507

507508
_bt_relbuf(rel,buf,access);
508509
buf=_bt_getbuf(rel,blkno,access);

‎src/backend/access/nbtree/nbtree.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright (c) 1994, Regents of the University of California
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.48 1999/11/14 16:22:59 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.49 1999/12/01 00:29:53 momjian Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -664,7 +664,8 @@ _bt_restscan(IndexScanDesc scan)
664664
for (;;)
665665
{
666666
if (P_RIGHTMOST(opaque))
667-
elog(FATAL,"_bt_restscan: my bits moved right off the end of the world!\nTry recreating the index.");
667+
elog(FATAL,"_bt_restscan: my bits moved right off the end of the world!\
668+
\n\tRecreate index %s.",RelationGetRelationName(rel));
668669

669670
blkno=opaque->btpo_next;
670671
_bt_relbuf(rel,buf,BT_READ);

‎src/backend/commands/vacuum.c

Lines changed: 5 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.128 1999/11/29 04:43:15 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.129 1999/12/01 00:29:54 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1997,7 +1997,8 @@ vc_scanoneind(Relation indrel, int num_tuples)
19971997
ru1.ru_utime.tv_sec-ru0.ru_utime.tv_sec);
19981998

19991999
if (nitups!=num_tuples)
2000-
elog(NOTICE,"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u).\n\tTry recreating the index.",
2000+
elog(NOTICE,"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u).\
2001+
\n\tRecreate the index.",
20012002
RelationGetRelationName(indrel),nitups,num_tuples);
20022003

20032004
}/* vc_scanoneind */
@@ -2078,7 +2079,8 @@ vc_vaconeind(VPageList vpl, Relation indrel, int num_tuples, int keep_tuples)
20782079
ru1.ru_utime.tv_sec-ru0.ru_utime.tv_sec);
20792080

20802081
if (num_index_tuples!=num_tuples+keep_tuples)
2081-
elog(NOTICE,"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u).\n\tTry recreating the index.",
2082+
elog(NOTICE,"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u).\
2083+
\n\tRecreate the index.",
20822084
RelationGetRelationName(indrel),num_index_tuples,num_tuples);
20832085

20842086
}/* vc_vaconeind */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp