Re: Naming of new tsvector functions

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Naming of new tsvector functions
Дата
Msg-id 57278EDD.3090205@commandprompt.com
обсуждение исходный текст
Ответ на Naming of new tsvector functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 05/02/2016 10:27 AM, Tom Lane wrote:
> I noticed that 6943a946c introduces some new functions named delete()
> and filter().  This does not seem like a terribly bright idea to me.
> They may not be formally ambiguous with the corresponding keywords,
> but it's not very hard to imagine how small typos could lead to
> the parser taking the unintended interpretation and then producing
> totally confusing error messages.  It's even less hard to imagine
> this choice preventing us from introducing some new syntax in future
> (for instance, DELETE ... RETURNING ... as a subquery-in-FROM) because
> it *would* be formally ambiguous.
>
> I think we'd be better off to rename these to tsvector_delete() and
> tsvector_filter() while we still can.

or ts_filter/delete? but no objection

JD

>
>             regards, tom lane
>
>


-- 
Command Prompt, Inc.                  http://the.postgres.company/                        +1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Naming of new tsvector functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: More inaccurate results from numeric pow()