pgsql: Make array_to_tsvector() sort and de-duplicate the given strings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Make array_to_tsvector() sort and de-duplicate the given strings
Дата
Msg-id E1bVlQh-00013t-Gj@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Make array_to_tsvector() sort and de-duplicate the given strings.

This is required for the result to be a legal tsvector value.
Noted while fooling with Andreas Seltenreich's ts_delete() crash.

Discussion: <87invhoj6e.fsf@credativ.de>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f10eab73df2b94c860dea4a906c54e3c903f42e2

Modified Files
--------------
doc/src/sgml/func.sgml                |  2 +-
src/backend/utils/adt/tsvector_op.c   | 49 ++++++++++++++++++++++++++++++-----
src/test/regress/expected/tstypes.out |  7 +++++
src/test/regress/sql/tstypes.sql      |  2 ++
4 files changed, 52 insertions(+), 8 deletions(-)


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgsql: Change InitToastSnapshot to a macro.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Change InitToastSnapshot to a macro.