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

index 6e1d1535400abfb60af18986d536666a12653042..7f9a215b2588176f7d99b6f28c2b0e8d17ec4015 100644 (file)
@@ -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 15620bbad36f56fd91358e99bef5f9a4d0b1a224..742c180c35646b97d8bd189d819c686c8aa1b55a 100644 (file)
@@ -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)