Re: CREATE OPERATOR and precedence

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CREATE OPERATOR and precedence
Дата
Msg-id 24641.1278599501@sss.pgh.pa.us
обсуждение исходный текст
Ответ на CREATE OPERATOR and precedence  (Marc Cousin <cousinmarc@gmail.com>)
Ответы Re: CREATE OPERATOR and precedence  (Marc Cousin <cousinmarc@gmail.com>)
Список pgsql-docs
Marc Cousin <cousinmarc@gmail.com> writes:
> I just got caught by a precedence problem with CREATE OPERATOR.

> Obviously, it was mostly my fault (I didn't think of the precedence of my
> operator at all), but I didn't find anything in the CREATE OPERATOR
> documentation about it either.

CREATE OPERATOR has nothing to say on the subject because operator
precedences are hard-wired into the parser and can't be changed by
CREATE OPERATOR.  See

http://www.postgresql.org/docs/8.4/static/sql-syntax-lexical.html#SQL-PRECEDENCE

            regards, tom lane


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

Предыдущее
От: Marc Cousin
Дата:
Сообщение: CREATE OPERATOR and precedence
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Please provide stable target anchors