pgsql: Improve regression test coverage forsrc/backend/tsearch/spell.c - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Improve regression test coverage forsrc/backend/tsearch/spell.c
Date
Msg-id E1f72pi-000648-BO@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Improve regression test coverage for src/backend/tsearch/spell.c.

In passing, throw an error if the AF count is too small, rather than
just silently discarding extra affix entries.

Note that the new regression test cases require installing the
updated src/backend/tsearch/dicts files.

Arthur Zakirov

Discussion: https://postgr.es/m/20180413113447.GA32474@zakirov.localdomain

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8bf358c18ec930ddfb998873369e2fc38608d3e1

Modified Files
--------------
.../tsearch/dicts/hunspell_sample_long.affix       | 25 +++++++++++++++---
.../tsearch/dicts/hunspell_sample_long.dict        |  3 +++
.../tsearch/dicts/hunspell_sample_num.affix        |  8 ++++++
src/backend/tsearch/dicts/hunspell_sample_num.dict |  3 ++-
src/backend/tsearch/spell.c                        |  9 +++++--
src/test/regress/expected/tsdicts.out              | 30 ++++++++++++++++++++++
src/test/regress/sql/tsdicts.sql                   |  5 ++++
7 files changed, 77 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: In libpq,free any partial query result before collecting a serv
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Prevent segfault in expand_tuple with no missing values