Re: Naming of new tsvector functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Naming of new tsvector functions
Дата
Msg-id 4328.1462370302@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Naming of new tsvector functions  (Stas Kelvich <s.kelvich@postgrespro.ru>)
Ответы Re: Naming of new tsvector functions  (Stas Kelvich <s.kelvich@postgrespro.ru>)
Список pgsql-hackers
Stas Kelvich <s.kelvich@postgrespro.ru> writes:
>> On 03 May 2016, at 00:59, David Fetter <david@fetter.org> wrote:
>> I suspect that steering that ship would be a good idea starting with
>> deprecation of the old name in 9.6, etc.  hs_filter(), perhaps?

> In 9.5 there already were tsvector functions length(), numnode(), strip()

> Recent commit added setweight(), delete(), unnest(), tsvector_to_array(), array_to_tsvector(), filter().

> Last bunch can be painlessly renamed, for example to ts_setweight, ts_delete, ts_unnest, ts_filter.

> The question is what to do with old ones? Leave them as is? Rename to ts_* and create aliases with deprecation
warning?

The other ones are not so problematic because they do not conflict with
SQL keywords.  It's only delete() and filter() that scare me.
        regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: pg_dump broken for non-super user
Следующее
От: Marc Mamin
Дата:
Сообщение: 9.5.2: "sql" as reserved word?