]> granicus.if.org Git - postgresql/commit
Fix bogus affix-merging code.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Apr 2018 22:39:51 +0000 (18:39 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Apr 2018 22:39:51 +0000 (18:39 -0400)
commit65a69dfa08e212556d11e44a5a8a1861fd826ccd
treea6c7ce2d80d8bd0a2b910c362200578ee3776f99
parentb8ca984b2c739e096c08f260f477792495f4dfe4
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