Re: Tsvector editing functions
От
Teodor Sigaev
Тема
Re: Tsvector editing functions
Дата
Msg-id
56E1AEF1.6050006@sigaev.ru
Ответ на
Re: Tsvector editing functions (Stas Kelvich)
Список
Дерево обсуждения
Tsvector editing functions Stas Kelvich <s.kelvich@postgrespro.ru>
Re: Tsvector editing functions Teodor Sigaev <teodor@sigaev.ru>
Re: Tsvector editing functions Stas Kelvich <s.kelvich@postgrespro.ru>
Re: Tsvector editing functions Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Tsvector editing functions Stas Kelvich <s.kelvich@postgrespro.ru>
Re: Tsvector editing functions Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Tsvector editing functions Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Tsvector editing functions Stas Kelvich <s.kelvich@postgrespro.ru>
Re: Tsvector editing functions Teodor Sigaev <teodor@sigaev.ru>
Re: Tsvector editing functions Stas Kelvich <s.kelvich@postgrespro.ru>
Re: Tsvector editing functions Teodor Sigaev <teodor@sigaev.ru>
Re: Tsvector editing functions Stas Kelvich <s.kelvich@postgrespro.ru>
Re: Tsvector editing functions Stas Kelvich <s.kelvich@postgrespro.ru>
Re: Tsvector editing functions Teodor Sigaev <teodor@sigaev.ru>
Re: Tsvector editing functions Teodor Sigaev <teodor@sigaev.ru>
Re: Tsvector editing functions Michael Paquier <michael.paquier@gmail.com>
Re: Tsvector editing functions Robert Haas <robertmhaas@gmail.com>
Re: Tsvector editing functions Teodor Sigaev <teodor@sigaev.ru>
Re: Tsvector editing functions Teodor Sigaev <teodor@sigaev.ru>
> Thanks! Fixed and added tests.
Thank you!
I did some patch cleanup/fix, but I have some doubt with function's names:
1 to_tsvector:
# \df to_tsvector
List of functions
Schema | Name | Result data type | Argument data types | Type
------------+-------------+------------------+---------------------+--------
pg_catalog | to_tsvector | tsvector | regconfig, text | normal
pg_catalog | to_tsvector | tsvector | text | normal
pg_catalog | to_tsvector | tsvector | text[] | normal
First two variants of to_tsvector make a morphological processing, last one doesn't.
2 to_array
# \df *to_array
List of functions
Schema | Name | Result data type | Argument data types |
Type
------------+-----------------------+------------------+---------------------+--------
pg_catalog | regexp_split_to_array | text[] | text, text |
normal
pg_catalog | regexp_split_to_array | text[] | text, text, text |
normal
pg_catalog | string_to_array | text[] | text, text |
normal
pg_catalog | string_to_array | text[] | text, text, text |
normal
pg_catalog | to_array | text[] | tsvector |
normal
Seems, to_array is not a right name compared to other *to_array.
I would like to suggest rename both functions to array_to_tsvector and
tsvector_to_array to have consistent name. Later we could add
to_tsvector([regconfig, ], text[]) with morphological processing.
Thoughts?
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
В списке pgsql-hackers по дате отправления