| От | Andreas Pflug |
|---|---|
| Тема | pg_get_viewdef 7.4 parentheses |
| Дата | |
| Msg-id | 3E91ABF7.1020103@web.de обсуждение исходный текст |
| Ответы |
Re: pg_get_viewdef 7.4 parentheses
|
| Список | pgsql-hackers |
While implementing a function for making view definitions look prettier in pgadmin3, I had a look at ruleutils.c to examine why there are tons of parentheses coming out of pg_get_viewdef. I believe that some are really not needed. These are: - get_rule_expr, for CASES T_RelabelType and T_CoerceToDomain. The cast is always bound to the near left variable, so it can be left out. - get_from_clauses for ON. Operators will deliver what is needed. for get_rule_expr and get_from_clauses(JOIN part), parentheses could be omitted if the top-level expression is evaluated. Do you agree? Regards, Andreas
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера