提交 24ff62d7 编写于 作者: T Tom Lane

Make new hints follow style guide.

上级 237be3cc
......@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.122 2005/08/10 21:36:45 momjian Exp $
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.123 2005/08/10 22:39:00 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -393,8 +393,8 @@ _bt_insertonpg(Relation rel,
errmsg("index row size %lu exceeds btree maximum, %lu",
(unsigned long) itemsz,
(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"
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, "
"or use full text indexing.")));
/*
......
......@@ -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.92 2005/08/10 21:36:45 momjian Exp $
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtsort.c,v 1.93 2005/08/10 22:39:00 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -499,8 +499,8 @@ _bt_buildadd(BTWriteState *wstate, BTPageState *state, BTItem bti)
errmsg("index row size %lu exceeds btree maximum, %lu",
(unsigned long) btisz,
(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"
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, "
"or use full text indexing.")));
if (pgspc < btisz || pgspc < state->btps_full)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册