]> granicus.if.org Git - postgresql/commit
Fix bogus affix-merging code.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Apr 2018 22:39:52 +0000 (18:39 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Apr 2018 22:39:52 +0000 (18:39 -0400)
commitac8ea0f27f3f1c3f537b8a4d136fa7f76bc520dc
treee4aa70dac4de8cdcd070a2d293a4c2e50553c725
parent66d4b6bb8065368f313507e94a0003ae48d96405
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
src/backend/tsearch/spell.c