Fix bogus affix-merging code.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f71d803c8de8daa7219ea52366ad3f4ff9345b3f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-04-12T22:39:51Z
Releases: 9.4.18
Fix bogus affix-merging code.

NISortAffixes() compared successive compound affixes incorrectly,
thus possibly failing to merge identical affixes, or (less likely)
merging ones that shouldn't be merged.  The user-visible effects
of this are unclear, to me anyway.

Per bug #15150 from Alexander Lakhin.  It's been broken for a long time,
so back-patch to all supported branches.

Arthur Zakirov

Discussion: https://postgr.es/m/152353327780.31225.13445405496721177988@wrigleys.postgresql.org

Files

PathChange+/−
src/backend/tsearch/spell.c modified +4 −2

Discussion