mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Add hints to cases where indexes fail because of values that are too long.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/rtree/rtree.c,v 1.90 2005/06/06 17:01:22 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/rtree/rtree.c,v 1.91 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
|
||||
|
||||
Reference in New Issue
Block a user