BUG #5112: Segmentation fault on ts_stat with empty words

Поиск
Список
Период
Сортировка
От Yury Don
Тема BUG #5112: Segmentation fault on ts_stat with empty words
Дата
Msg-id 200910131422.n9DEMOJK028385@wwwmaster.postgresql.org
обсуждение исходный текст
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      5112
Logged by:          Yury Don
Email address:      yura@vpcit.ru
PostgreSQL version: 8.4.1
Operating system:   Debian Linux (architecture amd64)
Description:        Segmentation fault on ts_stat with empty words
Details:

When call ts_stat function with empty argument, backend crashes, for
example:
select word from ts_stat('select \'\'::tsvector;');
select word from ts_stat('select null::tsvector;');

This causes crash on calling ts_stat with word from stop words:
select word from ts_stat('select to_tsvector(\'me\');');

In log file there are message "server process (PID ...) was terminated by
signal 11: Segmentation fault"

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Kerberos authentication, Active Directory, and PostgreSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5111: Segmentation fault, if to_tsvector returns empty row to ts_stat