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
237be3cc
Commit
237be3cc
authored
Aug 10, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add hints to cases where indexes fail because of values that are too long.
parent
8bbf227a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
src/backend/access/hash/hashinsert.c
src/backend/access/hash/hashinsert.c
+3
-2
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtinsert.c
+5
-2
src/backend/access/nbtree/nbtsort.c
src/backend/access/nbtree/nbtsort.c
+5
-2
src/backend/access/rtree/rtree.c
src/backend/access/rtree/rtree.c
+3
-2
No files found.
src/backend/access/hash/hashinsert.c
View file @
237be3cc
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/hash/hashinsert.c,v 1.3
6 2005/03/21 01:23:57 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/access/hash/hashinsert.c,v 1.3
7 2005/08/10 21:36:45 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -88,7 +88,8 @@ _hash_doinsert(Relation rel, HashItem hitem)
(
errcode
(
ERRCODE_PROGRAM_LIMIT_EXCEEDED
),
errmsg
(
"index row size %lu exceeds hash maximum %lu"
,
(
unsigned
long
)
itemsz
,
(
unsigned
long
)
HashMaxItemSize
((
Page
)
metap
))));
(
unsigned
long
)
HashMaxItemSize
((
Page
)
metap
)),
errhint
(
"Values larger than a buffer page cannot be indexed."
)));
/*
* Compute the target bucket number, and convert to block number.
...
...
src/backend/access/nbtree/nbtinsert.c
View file @
237be3cc
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.12
1 2005/06/06 20:22:57 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.12
2 2005/08/10 21:36:45 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -392,7 +392,10 @@ _bt_insertonpg(Relation rel,
(
errcode
(
ERRCODE_PROGRAM_LIMIT_EXCEEDED
),
errmsg
(
"index row size %lu exceeds btree maximum, %lu"
,
(
unsigned
long
)
itemsz
,
(
unsigned
long
)
BTMaxItemSize
(
page
))));
(
unsigned
long
)
BTMaxItemSize
(
page
)),
errhint
(
"Values larger than 1/3 of a buffer page cannot be indexed
\n
"
"Consider a separate column containing an MD5 hash of the value
\n
"
"or use full text indexing."
)));
/*
* Determine exactly where new item will go.
...
...
src/backend/access/nbtree/nbtsort.c
View file @
237be3cc
...
...
@@ -56,7 +56,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtsort.c,v 1.9
1 2005/06/06 20:22:57 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtsort.c,v 1.9
2 2005/08/10 21:36:45 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -498,7 +498,10 @@ _bt_buildadd(BTWriteState *wstate, BTPageState *state, BTItem bti)
(
errcode
(
ERRCODE_PROGRAM_LIMIT_EXCEEDED
),
errmsg
(
"index row size %lu exceeds btree maximum, %lu"
,
(
unsigned
long
)
btisz
,
(
unsigned
long
)
BTMaxItemSize
(
npage
))));
(
unsigned
long
)
BTMaxItemSize
(
npage
)),
errhint
(
"Values larger than 1/3 of a buffer page cannot be indexed
\n
"
"Consider a separate column containing an MD5 hash of the value
\n
"
"or use full text indexing."
)));
if
(
pgspc
<
btisz
||
pgspc
<
state
->
btps_full
)
{
...
...
src/backend/access/rtree/rtree.c
View file @
237be3cc
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/rtree/rtree.c,v 1.9
0 2005/06/06 17:01:22 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/access/rtree/rtree.c,v 1.9
1 2005/08/10 21:36:46 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -733,7 +733,8 @@ rtpicksplit(Relation r,
(
errcode
(
ERRCODE_PROGRAM_LIMIT_EXCEEDED
),
errmsg
(
"index row size %lu exceeds rtree maximum, %lu"
,
(
unsigned
long
)
newitemsz
,
(
unsigned
long
)
RTPageAvailSpace
)));
(
unsigned
long
)
RTPageAvailSpace
),
errhint
(
"Values larger than a buffer page cannot be indexed."
)));
maxoff
=
PageGetMaxOffsetNumber
(
page
);
newitemoff
=
OffsetNumberNext
(
maxoff
);
/* phony index for new
...
...
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