Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4901ff77
Commit
4901ff77
authored
Dec 01, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention index name when reporting corruption.
parent
1f649269
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtpage.c
+3
-2
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtree.c
+3
-2
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+5
-3
No files found.
src/backend/access/nbtree/nbtpage.c
View file @
4901ff77
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.3
3 1999/11/14 19:01:04 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.3
4 1999/12/01 00:29:53 momjian
Exp $
*
* NOTES
* Postgres btree pages look like ordinary relation pages. The opaque
...
...
@@ -502,7 +502,8 @@ _bt_getstackbuf(Relation rel, BTStack stack, int access)
{
blkno
=
opaque
->
btpo_next
;
if
(
P_RIGHTMOST
(
opaque
))
elog
(
FATAL
,
"my bits moved right off the end of the world!
\n\t
Try recreating the index."
);
elog
(
FATAL
,
"my bits moved right off the end of the world!\
\n\t
Recreate index %s."
,
RelationGetRelationName
(
rel
));
_bt_relbuf
(
rel
,
buf
,
access
);
buf
=
_bt_getbuf
(
rel
,
blkno
,
access
);
...
...
src/backend/access/nbtree/nbtree.c
View file @
4901ff77
...
...
@@ -11,7 +11,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.4
8 1999/11/14 16:22:59
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.4
9 1999/12/01 00:29:53
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -664,7 +664,8 @@ _bt_restscan(IndexScanDesc scan)
for
(;;)
{
if
(
P_RIGHTMOST
(
opaque
))
elog
(
FATAL
,
"_bt_restscan: my bits moved right off the end of the world!
\n
Try recreating the index."
);
elog
(
FATAL
,
"_bt_restscan: my bits moved right off the end of the world!\
\n\t
Recreate index %s."
,
RelationGetRelationName
(
rel
));
blkno
=
opaque
->
btpo_next
;
_bt_relbuf
(
rel
,
buf
,
BT_READ
);
...
...
src/backend/commands/vacuum.c
View file @
4901ff77
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.12
8 1999/11/29 04:43:15 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.12
9 1999/12/01 00:29:54 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1997,7 +1997,8 @@ vc_scanoneind(Relation indrel, int num_tuples)
ru1
.
ru_utime
.
tv_sec
-
ru0
.
ru_utime
.
tv_sec
);
if
(
nitups
!=
num_tuples
)
elog
(
NOTICE
,
"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u).
\n\t
Try recreating the index."
,
elog
(
NOTICE
,
"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u).\
\n\t
Recreate the index."
,
RelationGetRelationName
(
indrel
),
nitups
,
num_tuples
);
}
/* vc_scanoneind */
...
...
@@ -2078,7 +2079,8 @@ vc_vaconeind(VPageList vpl, Relation indrel, int num_tuples, int keep_tuples)
ru1
.
ru_utime
.
tv_sec
-
ru0
.
ru_utime
.
tv_sec
);
if
(
num_index_tuples
!=
num_tuples
+
keep_tuples
)
elog
(
NOTICE
,
"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u).
\n\t
Try recreating the index."
,
elog
(
NOTICE
,
"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u).\
\n\t
Recreate the index."
,
RelationGetRelationName
(
indrel
),
num_index_tuples
,
num_tuples
);
}
/* vc_vaconeind */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment