Re: patch: function xmltable
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Craig Ringer <craig@2ndquadrant.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2017-01-11T21:53:25Z
Lists: pgsql-hackers
Attachments
- xmltable-26.patch (text/plain) patch
- (unnamed) (text/plain)
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
Commits
-
Support XMLTABLE query expression
- fcec6caafa23 10.0 landed
-
Create <sect3> in the functions-xml section
- 4461a9bfd1ac 10.0 landed
-
Improve handling of "UPDATE ... SET (column_list) = row_constructor".
- 906bfcad7ba7 10.0 cited
-
Add xmlexists function
- 641459f26954 9.1.0 cited