| От | Alvaro Herrera |
|---|---|
| Тема | Re: [HACKERS] patch: function xmltable |
| Дата | |
| Msg-id | 20170111215325.4zb2arpn3efcl3en@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: [HACKERS] patch: function xmltable (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Список | pgsql-hackers |
Alvaro Herrera wrote: > The more I look at this, the less I like using NameArgExpr for > namespaces. It looks all wrong to me, and it causes ugly code all over. > Maybe I just need to look at it a bit longer. I think it'd be cleaner to use ResTarget for the namespaces, like xml_attribute_el does, and split the names from actual exprs in the same way. So things like ExecInitExpr become simpler because you just recurse to initialize the list, without having to examine each element individually. tabexprInitialize can just do forboth(). The main reason I don't like abusing NamedArgExpr is that the whole comment that explains it becomes a lie. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера