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

Commit103022c

Browse files
committed
Add index recreation suggestion to end of world error message.
1 parent106ded2 commit103022c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 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.31 1999/08/08 20:12:50 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.32 1999/11/14 16:22:59 momjian Exp $
1212
*
1313
*NOTES
1414
* Postgres btree pages look like ordinary relation pages.The opaque
@@ -501,8 +501,8 @@ _bt_getstackbuf(Relation rel, BTStack stack, int access)
501501
for (;;)
502502
{
503503
blkno=opaque->btpo_next;
504-
if (P_RIGHTMOST(opaque))
505-
elog(FATAL,"my bits moved right off the end of the world!");
504+
if (P_RIGHTMOST(opaque))R
505+
elog(FATAL,"my bits moved right off the end of the world!\nTry recreating the index.");
506506

507507
_bt_relbuf(rel,buf,access);
508508
buf=_bt_getbuf(rel,blkno,access);

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

Lines changed: 2 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.47 1999/10/1722:15:03 tgl Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.48 1999/11/14 16:22:59 momjian Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -664,7 +664,7 @@ _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!");
667+
elog(FATAL,"_bt_restscan: my bits moved right off the end of the world!\nTry recreating the index.");
668668

669669
blkno=opaque->btpo_next;
670670
_bt_relbuf(rel,buf,BT_READ);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp