| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Improve regression test coverage for src/backend/tsearch/spell.c |
| Date: | 2018-04-13 17:49:58 |
| Message-ID: | E1f72pi-000648-BO@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew Dunstan | 2018-04-13 20:49:45 | pgsql: Prevent segfault in expand_tuple with no missing values |
| Previous Message | Tom Lane | 2018-04-13 16:54:05 | pgsql: In libpq, free any partial query result before collecting a serv |