summaryrefslogtreecommitdiff
path: root/contrib/tsearch2
diff options
context:
space:
mode:
authorTeodor Sigaev <teodor@sigaev.ru>2006-07-11 16:55:34 +0000
committerTeodor Sigaev <teodor@sigaev.ru>2006-07-11 16:55:34 +0000
commit234163649e4eb7eb348e2a00192fec4a30cf0e33 (patch)
tree2cc5c929e9c62924addac67ae7b981d98633c538 /contrib/tsearch2
parentfa601357fb6c907a8e339b8a2ea7b4a8e2acf212 (diff)
downloadpostgresql-234163649e4eb7eb348e2a00192fec4a30cf0e33.tar.gz
GIN improvements
- Replace sorted array of entries in maintenance_work_mem to binary tree, this should improve create performance. - More precisely calculate allocated memory, eliminate leaks with user-defined extractValue() - Improve wordings in tsearch2
Diffstat (limited to 'contrib/tsearch2')
-rw-r--r--contrib/tsearch2/ts_cfg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/tsearch2/ts_cfg.c b/contrib/tsearch2/ts_cfg.c
index 5a662b7dbb..d0e1891668 100644
--- a/contrib/tsearch2/ts_cfg.c
+++ b/contrib/tsearch2/ts_cfg.c
@@ -313,12 +313,12 @@ parsetext_v2(TSCfgInfo * cfg, PRSTEXT * prs, char *buf, int4 buflen)
#ifdef IGNORE_LONGLEXEME
ereport(NOTICE,
(errcode(ERRCODE_SYNTAX_ERROR),
- errmsg("word is too long")));
+ errmsg("A word you are indexing is too long. It will be ignored.")));
continue;
#else
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
- errmsg("word is too long")));
+ errmsg("A word you are indexing is too long")));
#endif
}
@@ -470,12 +470,12 @@ hlparsetext(TSCfgInfo * cfg, HLPRSTEXT * prs, QUERYTYPE * query, char *buf, int4
#ifdef IGNORE_LONGLEXEME
ereport(NOTICE,
(errcode(ERRCODE_SYNTAX_ERROR),
- errmsg("word is too long")));
+ errmsg("A word you are indexing is too long. It will be ignored.")));
continue;
#else
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
- errmsg("word is too long")));
+ errmsg("A word you are indexing is too long")));
#endif
}