]> granicus.if.org Git - postgresql/commitdiff
Adjust error message to agree with documentation. The tsearch documentation
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 20 Oct 2007 21:06:20 +0000 (21:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 20 Oct 2007 21:06:20 +0000 (21:06 +0000)
uniformly calls these things weights, not classes.

src/backend/utils/adt/tsginidx.c

index ba4a10313cbaace24fa85efd928d73ef0383845b..075c921d4059dc652ca5afe797a36dd4d146382f 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/utils/adt/tsginidx.c,v 1.4 2007/09/11 08:46:29 teodor Exp $
+ *       $PostgreSQL: pgsql/src/backend/utils/adt/tsginidx.c,v 1.5 2007/10/20 21:06:20 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -97,7 +97,7 @@ gin_extract_query(PG_FUNCTION_ARGS)
                                if (strategy != TSearchWithClassStrategyNumber && val->weight != 0)
                                        ereport(ERROR,
                                                        (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-                                                        errmsg("@@ operator does not support lexeme class restrictions"),
+                                                        errmsg("@@ operator does not support lexeme weight restrictions in GIN index searches"),
                                                         errhint("Use the @@@ operator instead.")));
                        }
        }