pgsql: Improve regression test coverage forsrc/backend/tsearch/spell.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Improve regression test coverage forsrc/backend/tsearch/spell.c
Дата
Msg-id E1f72pi-000648-BO@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: In libpq,free any partial query result before collecting a serv
Следующее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Prevent segfault in expand_tuple with no missing values