Naming of new tsvector functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Naming of new tsvector functions
Дата
Msg-id 4875.1462210058@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: Naming of new tsvector functions  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Naming of new tsvector functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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.
        regards, tom lane



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

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: More inaccurate results from numeric pow()
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Naming of new tsvector functions