| От | Tom Lane |
|---|---|
| Тема | Re: Basic DOMAIN Support |
| Дата | |
| Msg-id | 5274.1015561892@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Basic DOMAIN Support ("Rod Taylor" <rbt@zort.ca>) |
| Список | pgsql-patches |
"Rod Taylor" <rbt@zort.ca> writes:
> Changing ColLabel to ColId seems to have corrected the problem but now
> I'm completely confused as to how it works.
Well, you don't really need to know anything about the parsing algorithm
to see that the way you had it was ambiguous. Consider input
DEFAULT = foo
If DEFAULT can be a ColLabel, then there are two valid parsings of
this input: one in which foo is reduced to c_expr and one in which
it's reduced to a typename. That ambiguity is what creates the
shift/reduce conflict.
BTW, I would recommend b_expr not c_expr as the expression nonterminal
to use, if possible. (Actually, I suspect a_expr would work, in which
case you might as well use it.)
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера