Content-Length: 263181 | pFad | http://github.com/postgrespro/postgres_cluster/commit/a2bd3e208591b49b8cbd770039ad7658d25218c4

B1 Thank you very much, you catch it :). This bug had a long life, becau… · postgrespro/postgres_cluster@a2bd3e2 · GitHub
Skip to content

Commit a2bd3e2

Browse files
committed
Thank you very much, you catch it :). This bug had a long life, because it
exists if and only if locale of postmaster was a different from C (or ru_RU.KOI8-R). Please, apply patch for current CVS & 7.3.1 Magnus Naeslund(f) wrote: > Ok, I nailed the bug, but i'm not sure what the correct fix is. > Attached tsearch_morph.diff that remedies this problem by avoiding it. > Also there's a debug aid patch if someone would like to know how i > finally found it out :) > > There problem in the lemmatize() function is that GETDICT(...) returned > a value not handled (BYLOCALE). > The value (-1) and later used as an index into the dicts[] array. > After that everything went berserk stack went crazy somehow so trapping > the fault sent me to the wrong place, and every time i read the value it > was positive ;) > > So now i just return the initial word passed to the lemmatize function, > because i don't know what to do with it. Magnus Naeslund
1 parent f679690 commit a2bd3e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/tsearch/morph.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ lemmatize(char *word, int *len, int type)
173173
/* word is stopword */
174174
return NULL;
175175
}
176+
else if (nd == BYLOCALE)
177+
{
178+
continue; /* no dict for current locale */
179+
}
176180
else
177181
{
178182
dict = &dicts[nd];

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/a2bd3e208591b49b8cbd770039ad7658d25218c4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy