OSDN Git Service

Mention MD5 function index for indexing long values.
authorBruce Momjian <bruce@momjian.us>
Thu, 11 Aug 2005 13:22:33 +0000 (13:22 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 11 Aug 2005 13:22:33 +0000 (13:22 +0000)
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtsort.c

index 57db2f5..cf1474e 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.123 2005/08/10 22:39:00 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.124 2005/08/11 13:22:33 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -394,7 +394,7 @@ _bt_insertonpg(Relation rel,
                                                (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, "
+                                                "Consider a function index of an MD5 hash of the value, "
                                                 "or use full text indexing.")));
 
        /*
index 6bf9bcb..ee5acee 100644 (file)
@@ -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.93 2005/08/10 22:39:00 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/access/nbtree/nbtsort.c,v 1.94 2005/08/11 13:22:33 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -500,7 +500,7 @@ _bt_buildadd(BTWriteState *wstate, BTPageState *state, BTItem bti)
                                                (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, "
+                                                "Consider a function index of an MD5 hash of the value, "
                                                 "or use full text indexing.")));
 
        if (pgspc < btisz || pgspc < state->btps_full)