Re: XMLNAMESPACES (was Re: Clarification of nodeToString() use cases)
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Andrey Lepikhov <a.lepikhov@postgrespro.ru>,
pgsql-hackers@lists.postgresql.org
Date: 2018-09-17T03:11:40Z
Lists: pgsql-hackers
Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes: > On 09/16/2018 02:05 PM, Tom Lane wrote: >> The change the attached patch makes is to represent a DEFAULT namespace >> as a NULL list entry, rather than a T_String Value node containing a >> null. > Seems related to this CF item that's been around for a year: > <https://www.postgresql.org/message-id/flat/CAFj8pRB%2BWDyDcZyGmfRdJ0HOoXugeaL-KNFeK9YA5Z10JN9qfA%40mail.gmail.com> > ? Hm, seems like that is operating at the next level down; it starts with XmlTableSetNamespace's response to a null "name" argument, whereas what I'm on about is what happens before we get to that function. There's quite a bit I don't like about that patch now that I look at it :-(, but I don't think it's relevant to this thread. regards, tom lane
Commits
-
Fix parsetree representation of XMLTABLE(XMLNAMESPACES(DEFAULT ...)).
- a552e3bc502e 10.6 landed
- 486cfb3b8ce6 11.0 landed
- 07a3af0ff81d 12.0 landed