pgsql: Fix bogus affix-merging code.

2018-04-12 Thread Tom Lane
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.13445405496721177...@wrigleys.postgresql.org

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/65a69dfa08e212556d11e44a5a8a1861fd826ccd

Modified Files
--
src/backend/tsearch/spell.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)



pgsql: Fix bogus affix-merging code.

2018-04-12 Thread Tom Lane
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.13445405496721177...@wrigleys.postgresql.org

Branch
--
REL9_5_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/906e44d4dc83d551d26e52902435f18d9fa5cfc7

Modified Files
--
src/backend/tsearch/spell.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)



pgsql: Fix bogus affix-merging code.

2018-04-12 Thread Tom Lane
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.13445405496721177...@wrigleys.postgresql.org

Branch
--
REL9_3_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/ac8ea0f27f3f1c3f537b8a4d136fa7f76bc520dc

Modified Files
--
src/backend/tsearch/spell.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)



pgsql: Fix bogus affix-merging code.

2018-04-12 Thread Tom Lane
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.13445405496721177...@wrigleys.postgresql.org

Branch
--
REL9_6_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/0f439c8dd28935bf9600722c1a25534add9390f0

Modified Files
--
src/backend/tsearch/spell.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)